Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. Edit this configuration file to define what should be installed on
  2. # your system. Help is available in the configuration.nix(5) man page
  3. # and in the NixOS manual (accessible by running ‘nixos-help’).
  4.  
  5. { config, pkgs, ... }:
  6. let antigen = pkgs.fetchgit {
  7. url = "https://github.com/zsh-users/antigen";
  8. rev = "1d212d149d039cc8d7fdf90c016be6596b0d2f6b";
  9. sha256 = "1c7ipgs8gvxng3638bipcj8c1s1dn3bb97j8c73piv2xgk42aqb9";
  10. fetchSubmodules = true;
  11. };
  12. in {
  13. imports =
  14. [ # Include the results of the hardware scan.
  15. ./hardware-configuration.nix
  16. ];
  17.  
  18. # Use the systemd-boot EFI boot loader.
  19. boot.loader.systemd-boot.enable = true;
  20. boot.loader.efi.canTouchEfiVariables = true;
  21. boot.initrd.checkJournalingFS = false;
  22.  
  23.  
  24. # networking.hostName = "nixos"; # Define your hostname.
  25. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  26.  
  27. # Select internationalisation properties.
  28. # i18n = {
  29. # consoleFont = "Lat2-Terminus16";
  30. # consoleKeyMap = "us";
  31. # defaultLocale = "en_US.UTF-8";
  32. # };
  33.  
  34. # Set your time zone.
  35. # time.timeZone = "Europe/Amsterdam";
  36. time.timeZone = "Asia/Singapore";
  37.  
  38. # List packages installed in system profile. To search by name, run:
  39. # $ nix-env -qaP | grep wget
  40. # environment.systemPackages = with pkgs; [
  41. # wget
  42. # ];
  43.  
  44. nixpkgs.config.allowUnfree = true;
  45.  
  46. environment.systemPackages = with pkgs; [
  47. curl
  48. git
  49. zip
  50. google-chrome-beta
  51. vim
  52. emacs
  53. filelight
  54. nodejs-7_x
  55. postgresql
  56. ];
  57.  
  58. # List services that you want to enable:
  59.  
  60. # Enable the OpenSSH daemon.
  61. # services.openssh.enable = true;
  62.  
  63. # Open ports in the firewall.
  64. # networking.firewall.allowedTCPPorts = [ ... ];
  65. # networking.firewall.allowedUDPPorts = [ ... ];
  66. # Or disable the firewall altogether.
  67. networking.firewall.enable = false;
  68.  
  69. # Enable CUPS to print documents.
  70. # services.printing.enable = true;
  71.  
  72. # Enable the X11 windowing system.
  73. services.xserver.enable = true;
  74. services.xserver.layout = "us";
  75.  
  76. services.xserver.synaptics.enable = true;
  77. # services.xserver.xkbOptions = "eurosign:e";
  78.  
  79. # Enable the KDE Desktop Environment.
  80. services.xserver.displayManager.sddm.enable = true;
  81. services.xserver.desktopManager.plasma5.enable = true;
  82.  
  83. # Define a user account. Don't forget to set a password with ‘passwd’.
  84. # users.extraUsers.guest = {
  85. # isNormalUser = true;
  86. # uid = 1000;
  87. # };
  88. programs.zsh = {
  89. enable = true;
  90. enableCompletion = true;
  91. interactiveShellInit = ''
  92. source ${antigen}/antigen.zsh
  93. # Load the oh-my-zsh's library.
  94. antigen use oh-my-zsh
  95. # Bundles from the default repo (robbyrussell's oh-my-zsh).
  96. antigen bundle git
  97. antigen bundle git-extras
  98. # Syntax highlighting bundle.
  99. antigen bundle zsh-users/zsh-syntax-highlighting
  100. # Load the theme.
  101. antigen theme wedisagree
  102. # Tell antigen that you're done.
  103. antigen apply
  104. '';
  105. };
  106. # Define a user account. Don't forget to set a password with ‘passwd’.
  107. users.extraUsers.ryan = {
  108. isNormalUser = true;
  109. home = "/home/ryan";
  110. extraGroups = [ "wheel" ];
  111. uid = 1000;
  112. shell = pkgs.zsh;
  113. };
  114.  
  115. # The NixOS release to be compatible with for stateful data such as databases.
  116. system.stateVersion = "17.03";
  117.  
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement