Advertisement
Guest User

Untitled

a guest
Mar 24th, 2020
587
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.34 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.  
  7. {
  8. imports =
  9. [ # Include the results of the hardware scan.
  10. ./hardware-configuration.nix
  11. ];
  12.  
  13. # Use the GRUB 2 boot loader.
  14. # boot.loader.systemd-boot.enable = true;
  15.  
  16. boot.loader = {
  17. efi = {
  18. canTouchEfiVariables = true;
  19. efiSysMountPoint = "/boot/efi";
  20. };
  21.  
  22. grub = {
  23. efiSupport = true;
  24. device = "nodev";
  25. };
  26. };
  27.  
  28. fileSystems."/home" =
  29. { device = "/dev/disk/by-uuid/9307c990-e121-467e-b57b-28e3ee7c0e30";
  30. fsType = "ext4";
  31. };
  32.  
  33. networking.hostName = "abraxas"; # Define your hostname.
  34. networking.networkmanager.enable = true;
  35.  
  36. # Configure network proxy if necessary
  37. # networking.proxy.default = "http://user:password@proxy:port/";
  38. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  39.  
  40. # Select internationalisation properties.
  41. # i18n = {
  42. # consoleFont = "Lat2-Terminus16";
  43. # consoleKeyMap = "us";
  44. # defaultLocale = "en_US.UTF-8";
  45. # };
  46.  
  47. # Set your time zone.
  48. time.timeZone = "America/New_York";
  49.  
  50. # List packages installed in system profile. To search, run:
  51. # $ nix search wget
  52. environment.systemPackages = with pkgs; [
  53. adobe-reader
  54. ark
  55. astyle
  56. autoconf
  57. automake
  58. bc
  59. binutils
  60. bison
  61. calibre
  62. cargo
  63. citrix_workspace
  64. cmakeCurses
  65. cppcheck
  66. ctags
  67. direnv
  68. file
  69. firefox
  70. gcc
  71. gdbm
  72. gimp
  73. git
  74. glibc
  75. gnumake
  76. gnupg
  77. htop
  78. kdeApplications.spectacle
  79. killall
  80. kwayland-integration
  81. libreoffice
  82. libtool
  83. libyaml
  84. lynx
  85. ncurses
  86. nodejs
  87. okular
  88. openssl
  89. p7zip
  90. pciutils
  91. pkgconfig
  92. python
  93. python3
  94. readline
  95. ruby
  96. rustc
  97. rustup
  98. scowl
  99. slack
  100. sqlite
  101. stdenv
  102. steam
  103. telnet
  104. texlive.combined.scheme-full
  105. thunderbird
  106. unzip
  107. usbutils
  108. vimHugeX
  109. virtualboxWithExtpack
  110. wget
  111. wineFull
  112. winePackages.full
  113. winetricks
  114. yakuake
  115. zlib
  116. zsh
  117. ];
  118.  
  119. # Some programs need SUID wrappers, can be configured further or are
  120. # started in user sessions.
  121. # programs.mtr.enable = true;
  122. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  123. programs.zsh.enable = true;
  124.  
  125. # List services that you want to enable:
  126.  
  127. # Enable the OpenSSH daemon.
  128. services.openssh.enable = true;
  129.  
  130. # Open ports in the firewall.
  131. # networking.firewall.allowedTCPPorts = [ ... ];
  132. # networking.firewall.allowedUDPPorts = [ ... ];
  133. # Or disable the firewall altogether.
  134. # networking.firewall.enable = false;
  135.  
  136. # Enable CUPS to print documents.
  137. services.printing.enable = true;
  138. services.printing.drivers = [ pkgs.hplip ];
  139.  
  140. # Enable sound.
  141. sound.enable = true;
  142. hardware.pulseaudio.enable = true;
  143. hardware.pulseaudio.support32Bit = true;
  144.  
  145. # Enable the X11 windowing system.
  146. services.xserver.enable = true;
  147. services.xserver.layout = "us";
  148. services.xserver.xkbOptions = "eurosign:e";
  149.  
  150. # Enable third monitor
  151. services.xserver.screenSection = ''
  152. Monitor "Monitor0"
  153. DefaultDepth 24
  154. Option "Stereo" "0"
  155. Option "nvidiaXineramaInfoOrder" "DFP-3"
  156. Option "metamodes" "DP-2: nvidia-auto-select +0+0, DP-0: nvidia-auto-select +5120+0, DP-4: nvidia-auto-select +2560+0"
  157. Option "SLI" "Off"
  158. Option "MultiGPU" "Off"
  159. Option "BaseMosaic" "off"
  160. SubSection "Display"
  161. Depth 24
  162. EndSubSection
  163. '';
  164.  
  165. # Enable touchpad support.
  166. # services.xserver.libinput.enable = true;
  167.  
  168. # Enable the KDE Desktop Environment.
  169. services.xserver.displayManager.sddm.enable = true;
  170. services.xserver.desktopManager.plasma5.enable = true;
  171.  
  172. # Nvidia Drivers
  173. nixpkgs.config.allowUnfree = true;
  174. services.xserver.videoDrivers = [ "nvidia" ];
  175. hardware.opengl.driSupport32Bit = true;
  176.  
  177. systemd.services.nvidia-control-devices = {
  178. wantedBy = [ "multi-user.target" ];
  179. serviceConfig.ExecStart = "${pkgs.linuxPackages.nvidia_x11.bin}/bin/nvidia-smi";
  180. };
  181.  
  182. # Define a user account. Don't forget to set a password with ‘passwd’.
  183. users.users.omnipotententity = {
  184. isNormalUser = true;
  185. uid = 1000;
  186. hashedPassword = "REDACTED";
  187. extraGroups = [ "wheel" "networkmanager" ];
  188. createHome = true;
  189. description = "REDACTED";
  190. group = "users";
  191. home = "/home/omnipotententity";
  192. packages = with pkgs; [
  193. audacity
  194. chromium
  195. discord
  196. dropbox
  197. hexchat
  198. keepassx2
  199. ktorrent
  200. mplayer
  201. oh-my-zsh
  202. riot-desktop
  203. tdesktop
  204. vlc
  205. zoom-us
  206. ];
  207. shell = pkgs.zsh;
  208. };
  209.  
  210. users.users.root = {
  211. hashedPassword = "REDACTED";
  212. };
  213.  
  214. users.mutableUsers = false;
  215.  
  216. virtualisation.virtualbox.host.enable = true;
  217.  
  218. # This value determines the NixOS release with which your system is to be
  219. # compatible, in order to avoid breaking some software such as database
  220. # servers. You should change this only after NixOS release notes say you
  221. # should.
  222. system.stateVersion = "19.09"; # Did you read the comment?
  223.  
  224. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement