Guest User

Untitled

a guest
Oct 31st, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.39 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, lib, ... }:
  6.  
  7. with lib;
  8.  
  9. {
  10. imports =
  11. [ # Include the results of the hardware scan.
  12. ./hardware-configuration.nix
  13. ];
  14.  
  15. hardware = {
  16. bumblebee = true;
  17. opengl.driSupport32Bit = true;
  18. opengl.enable=true;
  19. };
  20.  
  21. networking = {
  22. hostName = "machine";
  23.  
  24. wireless.enable = false;
  25. networkmanager.enable = true;
  26.  
  27. firewall = {
  28. enable = true;
  29. allowPing = false;
  30. };
  31. };
  32.  
  33. # Internationalisation properties.
  34. i18n = {
  35. consoleFont = "Lat2-Terminus16";
  36. consoleKeyMap = "us";
  37. defaultLocale = "en_US.UTF-8";
  38. };
  39.  
  40. fonts = {
  41. enableCoreFonts = true;
  42. enableFontDir = true;
  43. enableGhostscriptFonts = true;
  44. fonts = with pkgs; [
  45. inconsolata # monospaced
  46. ubuntu_font_family
  47. powerline-fonts
  48. font-awesome-ttf
  49. source-code-pro
  50. unifont # some international languages
  51. ];
  52. fontconfig = {
  53. dpi = 96;
  54. };
  55. };
  56.  
  57. # Set your time zone.
  58. time.timeZone = "Europe/Kiev";
  59.  
  60. nixpkgs.config = {
  61. # Allow unfree packages
  62. allowUnfree = true;
  63. };
  64.  
  65. environment.systemPackages = with pkgs; [
  66. git
  67. docker
  68. nodejs
  69. feh
  70. screenfetch
  71. mpv
  72. ranger
  73. transmission
  74. compton-git
  75. dmenu
  76. rofi
  77. termite
  78. ag
  79. atool
  80. numix-gtk-theme
  81. wget
  82. neovim
  83. kakoune
  84. termite
  85. tmux
  86. vscode
  87. copyq
  88. google-chrome
  89. oh-my-zsh
  90. xclip
  91.  
  92. file
  93. gksu
  94. git
  95. hdf5
  96. zip
  97. unzip
  98. htop
  99. nix-repl
  100. zsh-autosuggestions
  101.  
  102. # Mouse hiding
  103. # unclutter
  104.  
  105. # Encryption key management
  106. gnupg
  107.  
  108. # Make NTFS filesystems (e.g., USB drives)
  109. ntfs3g
  110.  
  111. # Encrypted USB sticks etc
  112. cryptsetup
  113.  
  114. # GUI for sound control
  115. pavucontrol
  116. ];
  117.  
  118. services = {
  119. # Enable the OpenSSH daemon.
  120. openssh.enable = true;
  121.  
  122. xserver = {
  123. enable = true;
  124. layout = "us";
  125.  
  126. videoDrivers = [ "nvidia" ];
  127.  
  128. windowManager = {
  129. xmonad.enable = true;
  130. xmonad.enableContribAndExtras = true;
  131. };
  132.  
  133. desktopManager = {
  134. default = "";
  135. xterm.enable = false;
  136. };
  137.  
  138. displayManager = {
  139. auto = {
  140. enable = true;
  141. user = "bjorn";
  142. };
  143. };
  144.  
  145. synaptics = {
  146. enable = true;
  147. twoFingerScroll = true;
  148. };
  149. };
  150. };
  151.  
  152. users = {
  153. mutableUsers = false;
  154. defaultUserShell = "${pkgs.zsh}/bin/zsh";
  155. extraUsers = {
  156. bjorn = {
  157. isNormalUser = true;
  158. extraGroups = [ "audio" "disk" "wheel" "networkmanager" ];
  159. hashedPassword = "$6$Xne/w.j0RkrN$lRcThoZiNea2YBhfbeVJ2dgylt6Ov0IZbh1bf3flR6DYNpnv8YTTPJGwhk/8XPGNkgIrlKtXfvBowCZ7nbVt6/";
  160. };
  161. };
  162. };
  163.  
  164. swapDevices = singleton
  165. { device = "/dev/disk/by-label/swap"; };
  166.  
  167. programs = {
  168. bash.enableCompletion = true;
  169. zsh.enable = true;
  170. };
  171.  
  172. security = {
  173. sudo = {
  174. enable = true;
  175. wheelNeedsPassword = false; # You Only Live Once
  176. };
  177. };
  178.  
  179. # This value determines the NixOS release with which your system is to be
  180. # compatible, in order to avoid breaking some software such as database
  181. # servers. You should change this only after NixOS release notes say you
  182. # should.
  183. system.stateVersion = "17.09"; # Did you read the comment?
  184. }
Add Comment
Please, Sign In to add comment