Advertisement
Guest User

configuration.nix

a guest
Dec 6th, 2018
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 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.grub.enable = true;
  15. boot.loader.grub.version = 2;
  16. # boot.loader.grub.efiSupport = true;
  17. # boot.loader.grub.efiInstallAsRemovable = true;
  18. # boot.loader.efi.efiSysMountPoint = "/boot/efi";
  19. # Define on which hard drive you want to install Grub.
  20. boot.loader.grub.devices = ["/dev/vda" "/dev/vdb"]; # or "nodev" for efi only
  21. boot.supportedFilesystems = ["zfs"];
  22. boot.zfs.enableUnstable = true;
  23.  
  24. # Load additional hardware stuff
  25. hardware = {
  26. # Hardware settings
  27. cpu.intel.updateMicrocode = true;
  28. enableAllFirmware = true;
  29. };
  30. networking.hostName = "nixos"; # Define your hostname.
  31. networking.hostId = "8425e349";
  32. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  33.  
  34. services.dbus.enable = true;
  35. nixpkgs.config.allowUnfree = true;
  36. # Select internationalisation properties.
  37. i18n = {
  38. consoleFont = "Lat2-Terminus16";
  39. consoleKeyMap = "us";
  40. defaultLocale = "en_US.UTF-8";
  41. };
  42.  
  43. # Set your time zone.
  44. time.timeZone = "Americas/Denver";
  45.  
  46. # Enable the X11 windowing system.
  47. services.xserver = {
  48. enable = true;
  49. #videoDrivers = [ "intel" ];
  50. layout = "us";
  51. #xkbOptions = "eurosign:e";
  52. #synaptics = {
  53. # enable = true;
  54. #};
  55.  
  56. # Enable the KDE Desktop Environment.
  57. displayManager.sddm = {
  58. enable = true;
  59. # autoLogin = {
  60. # enable = true;
  61. # user = "${mySecrets.user}";
  62. # };
  63. };
  64. desktopManager.plasma5.enable = true;
  65. };
  66.  
  67.  
  68. # Use KDE5 unstable
  69. nixpkgs.config.packageOverrides = super: let self = super.pkgs; in {
  70. plasma5_stable = self.plasma5_latest;
  71. kdeApps_stable = self.kdeApps_latest;
  72. };
  73.  
  74. # List packages installed in system profile. To search, run:
  75. # $ nix search wget
  76. environment.systemPackages = with pkgs; [
  77. wget
  78. vim
  79. curl
  80. firefox
  81. vlc
  82. partition-manager
  83. wirelesstools
  84. ark
  85. dolphin
  86. kdeFrameworks.kdesu
  87. kate
  88. okular
  89. oxygen
  90. oxygen-icons5
  91. oxygenfonts
  92. plasma-desktop
  93. plasma-nm
  94. plasma-workspace
  95. spectacle
  96. kdeApplications.kdialog
  97. manpages
  98. mkpasswd
  99. nox
  100. qt5Full
  101. smplayer
  102. spice
  103. sudo
  104.  
  105. ];
  106.  
  107. security.sudo = {
  108. enable = true;
  109. wheelNeedsPassword = true;
  110. };
  111.  
  112. # Some programs need SUID wrappers, can be configured further or are
  113. # started in user sessions.
  114. # programs.mtr.enable = true;
  115. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  116.  
  117. # List services that you want to enable:
  118.  
  119. # Enable the OpenSSH daemon.
  120. services.openssh.enable = true;
  121.  
  122.  
  123. # Open ports in the firewall.
  124. # networking.firewall.allowedTCPPorts = [ ... ];
  125. # networking.firewall.allowedUDPPorts = [ ... ];
  126. # Or disable the firewall altogether.
  127. networking.firewall.enable = false;
  128. networking.networkmanager.enable=true;
  129.  
  130. # Enable CUPS to print documents.
  131. # services.printing.enable = true;
  132.  
  133. # Enable sound.
  134. # sound.enable = true;
  135. # hardware.pulseaudio.enable = true;
  136.  
  137. # Enable touchpad support.
  138. # services.xserver.libinput.enable = true;
  139.  
  140. # Define a user account. Don't forget to set a password with ‘passwd’.
  141. # users.users.guest = {
  142. # isNormalUser = true;
  143. # uid = 1000;
  144. # };
  145. users.extraUsers.ikidd = {
  146. isNormalUser = true;
  147. extraGroups = ["wheel" "networkmanager"];
  148. };
  149.  
  150. # This value determines the NixOS release with which your system is to be
  151. # compatible, in order to avoid breaking some software such as database
  152. # servers. You should change this only after NixOS release notes say you
  153. # should.
  154. system.stateVersion = "18.09"; # Did you read the comment?
  155.  
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement