Advertisement
Guest User

Untitled

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