Guest User

Untitled

a guest
Sep 17th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 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 systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16.  
  17. networking.hostName = "othala"; # Define your hostname.
  18. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  19. networking.networkmanager.enable = true; # Enables wireless support via wpa_supplicant.
  20.  
  21. # Select internationalisation properties.
  22. # i18n = {
  23. # consoleFont = "Lat2-Terminus16";
  24. # consoleKeyMap = "us";
  25. # defaultLocale = "en_US.UTF-8";
  26. # };
  27.  
  28. # Set your time zone.
  29. time.timeZone = "Europe/Paris";
  30.  
  31. security.sudo.wheelNeedsPassword = false;
  32.  
  33. # List packages installed in system profile. To search, run:
  34. # $ nix search wget
  35. environment.systemPackages = with pkgs; [
  36. acpi
  37. aegisub
  38. alacritty
  39. asciinema
  40. bc
  41. blender
  42. bspwm
  43. # bundix
  44. calibre
  45. cargo
  46. chromium
  47. crystal
  48. curl
  49. dejavu_fonts
  50. docker
  51. dolphinEmu
  52. dtach
  53. dunst
  54. elvish
  55. fdm
  56. ffmpeg
  57. fzf
  58. gimp
  59. git
  60. gparted
  61. gptfdisk
  62. graphviz
  63. htop
  64. i3blocks
  65. i3-gaps
  66. imagemagick
  67. inkscape
  68. inotify-tools
  69. jq
  70. kakoune
  71. lemonbar-xft
  72. liberation_ttf
  73. lightdm
  74. lxc
  75. mate.mate-icon-theme-faenza
  76. mkvtoolnix
  77. mosh
  78. mpv
  79. msmtp
  80. nettools
  81. networkmanagerapplet
  82. nginx
  83. notmuch
  84. ntfs3g
  85. p7zip
  86. pandoc
  87. pavucontrol
  88. peek
  89. peruse
  90. polybar
  91. # python
  92. qemu
  93. redshift
  94. ripgrep
  95. rofi
  96. rtorrent
  97. # ruby
  98. setroot
  99. shards
  100. socat
  101. sox
  102. sshfs
  103. sxhkd
  104. tmux
  105. virtualbox
  106. weechat
  107. wget
  108. wine
  109. xboxdrv
  110. xclip
  111. xcompmgr
  112. xdo
  113. xdotool
  114. xorg.xbacklight
  115. xorg.xev
  116. xorg.xkbcomp
  117. xorg.xmodmap
  118. xorg.xrdb
  119. youtube-dl
  120. zathura
  121. ];
  122.  
  123. # Some programs need SUID wrappers, can be configured further or are
  124. # started in user sessions.
  125. # programs.bash.enableCompletion = true;
  126. # programs.mtr.enable = true;
  127. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  128.  
  129. # List services that you want to enable:
  130. services.logind.lidSwitch = "ignore";
  131. services.logind.extraConfig = ''
  132. # [Login]
  133. HandlePowerKey=hibernate
  134. HandleSuspendKey=suspend
  135. HandleHibernateKey=hibernate
  136. HandleLidSwitch=ignore
  137. '';
  138.  
  139. # Enable the OpenSSH daemon.
  140. services.openssh.enable = true;
  141.  
  142. services.redshift.enable = true;
  143. services.redshift.latitude = "48.5";
  144. services.redshift.longitude = "2.2";
  145.  
  146. # Open ports in the firewall.
  147. # networking.firewall.allowedTCPPorts = [ ... ];
  148. # networking.firewall.allowedUDPPorts = [ ... ];
  149. # Or disable the firewall altogether.
  150. # networking.firewall.enable = false;
  151.  
  152. # Enable CUPS to print documents.
  153. services.printing.enable = true;
  154.  
  155. # Enable sound.
  156. sound.enable = true;
  157. hardware.pulseaudio.enable = true;
  158.  
  159. # Enable the X11 windowing system.
  160. services.xserver.enable = true;
  161. # services.xserver.layout = "us";
  162. # services.xserver.xkbOptions = "eurosign:e";
  163.  
  164. # Enable touchpad support.
  165. services.xserver.libinput.enable = true;
  166.  
  167. # Enable the KDE Desktop Environment.
  168. # services.xserver.displayManager.sddm.enable = true;
  169. # services.xserver.desktopManager.plasma5.enable = true;
  170.  
  171. services.xserver.displayManager.lightdm.enable = true;
  172. services.xserver.windowManager.i3.enable = true;
  173.  
  174. # Define a user account. Don't forget to set a password with ‘passwd’.
  175. users.extraUsers.alex = {
  176. uid = 1000;
  177. isNormalUser = true;
  178. extraGroups = [
  179. "adm"
  180. "audio"
  181. "disk"
  182. "games"
  183. "networkmanager"
  184. "usb"
  185. "vboxusers"
  186. "wheel"
  187. ];
  188. shell = "/run/current-system/sw/bin/bash";
  189. };
  190.  
  191. # This value determines the NixOS release with which your system is to be
  192. # compatible, in order to avoid breaking some software such as database
  193. # servers. You should change this only after NixOS release notes say you
  194. # should.
  195. system.stateVersion = "18.03"; # Did you read the comment?
  196.  
  197. }
Add Comment
Please, Sign In to add comment