Advertisement
Guest User

configuration.nix

a guest
Jan 10th, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 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.device = "/dev/sda"; # or "nodev" for efi only
  21.  
  22. # networking.hostName = "nixos"; # Define your hostname.
  23. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  24.  
  25. # Select internationalisation properties.
  26. # i18n = {
  27. # consoleFont = "Lat2-Terminus16";
  28. # consoleKeyMap = "us";
  29. # defaultLocale = "en_US.UTF-8";
  30. # };
  31.  
  32. # Set your time zone.
  33. # time.timeZone = "Europe/Amsterdam";
  34.  
  35. # List packages installed in system profile. To search by name, run:
  36. # $ nix-env -qaP | grep wget
  37. # environment.systemPackages = with pkgs; [
  38. # wget vim
  39. # ];
  40.  
  41. # Some programs need SUID wrappers, can be configured further or are
  42. # started in user sessions.
  43. # programs.bash.enableCompletion = true;
  44. # programs.mtr.enable = true;
  45. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  46.  
  47. # List services that you want to enable:
  48.  
  49. # Enable the OpenSSH daemon.
  50. services.openssh.enable = true;
  51.  
  52. # Open ports in the firewall.
  53. # networking.firewall.allowedTCPPorts = [ ... ];
  54. # networking.firewall.allowedUDPPorts = [ ... ];
  55. # Or disable the firewall altogether.
  56. # networking.firewall.enable = false;
  57.  
  58. # Enable CUPS to print documents.
  59. # services.printing.enable = true;
  60.  
  61. # Enable the X11 windowing system.
  62. services.xserver.enable = true;
  63. services.xserver.layout = "us";
  64. services.xserver.xkbOptions = "eurosign:e";
  65.  
  66. # Enable touchpad support.
  67. # services.xserver.libinput.enable = true;
  68.  
  69. # Enable the KDE Desktop Environment.
  70. services.xserver.displayManager.sddm.enable = true;
  71. services.xserver.desktopManager.plasma5.enable = true;
  72.  
  73. # Define a user account. Don't forget to set a password with ‘passwd’.
  74. # users.extraUsers.guest = {
  75. # isNormalUser = true;
  76. # uid = 1000;
  77. # };
  78.  
  79. # This value determines the NixOS release with which your system is to be
  80. # compatible, in order to avoid breaking some software such as database
  81. # servers. You should change this only after NixOS release notes say you
  82. # should.
  83. system.stateVersion = "17.09"; # Did you read the comment?
  84.  
  85. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement