Advertisement
Guest User

Untitled

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