Advertisement
Guest User

Untitled

a guest
May 5th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 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. boot.kernelPackages = pkgs.linuxPackages_latest;
  17. boot.initrd.luks.devices.root = {
  18. preLVM = true;
  19. allowDiscards = true;
  20. device = "/dev/nvme0n1p2";
  21. };
  22.  
  23. # networking.hostName = "nixos"; # Define your hostname.
  24. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  25.  
  26. # Configure network proxy if necessary
  27. # networking.proxy.default = "http://user:password@proxy:port/";
  28. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  29.  
  30. # Select internationalisation properties.
  31. # i18n = {
  32. # consoleFont = "Lat2-Terminus16";
  33. # consoleKeyMap = "us";
  34. # defaultLocale = "en_US.UTF-8";
  35. # };
  36.  
  37. # Set your time zone.
  38. # time.timeZone = "Europe/Amsterdam";
  39.  
  40. # List packages installed in system profile. To search, run:
  41. # $ nix search wget
  42. # environment.systemPackages = with pkgs; [
  43. # wget vim
  44. # ];
  45.  
  46. # Some programs need SUID wrappers, can be configured further or are
  47. # started in user sessions.
  48. # programs.mtr.enable = true;
  49. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  50.  
  51. # List services that you want to enable:
  52.  
  53. # Enable the OpenSSH daemon.
  54. # services.openssh.enable = true;
  55.  
  56. # Open ports in the firewall.
  57. # networking.firewall.allowedTCPPorts = [ ... ];
  58. # networking.firewall.allowedUDPPorts = [ ... ];
  59. # Or disable the firewall altogether.
  60. # networking.firewall.enable = false;
  61.  
  62. # Enable CUPS to print documents.
  63. # services.printing.enable = true;
  64.  
  65. # Enable sound.
  66. # sound.enable = true;
  67. # hardware.pulseaudio.enable = true;
  68.  
  69. # Enable the X11 windowing system.
  70. # services.xserver.enable = true;
  71. # services.xserver.layout = "us";
  72. # services.xserver.xkbOptions = "eurosign:e";
  73.  
  74. # Enable touchpad support.
  75. # services.xserver.libinput.enable = true;
  76.  
  77. # Enable the KDE Desktop Environment.
  78. # services.xserver.displayManager.sddm.enable = true;
  79. # services.xserver.desktopManager.plasma5.enable = true;
  80.  
  81. # Define a user account. Don't forget to set a password with ‘passwd’.
  82. # users.users.jane = {
  83. # isNormalUser = true;
  84. # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  85. # };
  86.  
  87. # This value determines the NixOS release with which your system is to be
  88. # compatible, in order to avoid breaking some software such as database
  89. # servers. You should change this only after NixOS release notes say you
  90. # should.
  91. system.stateVersion = "19.09"; # Did you read the comment?
  92.  
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement