Guest User

Untitled

a guest
Mar 28th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.73 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. fileSystems."/".options = [ "noatime" "nodiratime" "discard" ];
  14.  
  15. # Use the systemd-boot EFI boot loader.
  16. boot.loader.systemd-boot.enable = true;
  17. boot.loader.efi.canTouchEfiVariables = true;
  18. boot.loader.grub = {
  19. enable = true;
  20. version = 2;
  21. device = "nodev";
  22. efiSupport = true;
  23. enableCryptodisk = true;
  24. };
  25. boot.initrd.luks.devices = {
  26. name = "crypt";
  27. device = "/dev/disk/by-uuid/ab388453-5d39-4a78-a40a-5efb43895882";
  28. preLVM = true;
  29. };
  30.  
  31. networking.hostName = "nixos"; # Define your hostname.
  32. networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  33.  
  34. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  35. # Per-interface useDHCP will be mandatory in the future, so this generated config
  36. # replicates the default behaviour.
  37. networking.useDHCP = false;
  38. networking.interfaces.enp0s31f6.useDHCP = true;
  39. networking.interfaces.wlp82s0.useDHCP = true;
  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 = {
  65. # enable = true;
  66. # enableSSHSupport = true;
  67. # pinentryFlavor = "gnome3";
  68. # };
  69.  
  70. # List services that you want to enable:
  71.  
  72. # Enable the OpenSSH daemon.
  73. # services.openssh.enable = true;
  74.  
  75. # Open ports in the firewall.
  76. # networking.firewall.allowedTCPPorts = [ ... ];
  77. # networking.firewall.allowedUDPPorts = [ ... ];
  78. # Or disable the firewall altogether.
  79. # networking.firewall.enable = false;
  80.  
  81. # Enable CUPS to print documents.
  82. # services.printing.enable = true;
  83.  
  84. # Enable sound.
  85. # sound.enable = true;
  86. # hardware.pulseaudio.enable = true;
  87.  
  88. # Enable the X11 windowing system.
  89. # services.xserver.enable = true;
  90. # services.xserver.layout = "us";
  91. # services.xserver.xkbOptions = "eurosign:e";
  92.  
  93. # Enable touchpad support.
  94. # services.xserver.libinput.enable = true;
  95.  
  96. # Enable the KDE Desktop Environment.
  97. # services.xserver.displayManager.sddm.enable = true;
  98. # services.xserver.desktopManager.plasma5.enable = true;
  99.  
  100. # Define a user account. Don't forget to set a password with ‘passwd’.
  101. # users.users.jane = {
  102. # isNormalUser = true;
  103. # extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  104. # };
  105.  
  106. # This value determines the NixOS release from which the default
  107. # settings for stateful data, like file locations and database versions
  108. # on your system were taken. It‘s perfectly fine and recommended to leave
  109. # this value at the release version of the first install of this system.
  110. # Before changing this value read the documentation for this option
  111. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  112. system.stateVersion = "20.03"; # Did you read the comment?
  113.  
  114. }
Advertisement
Add Comment
Please, Sign In to add comment