Guest User

Untitled

a guest
May 30th, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. [nixos@nixos:/mnt]$ cat etc/nixos/configuration.nix
  2. # Edit this configuration file to define what should be installed on
  3. # your system. Help is available in the configuration.nix(5) man page
  4. # and in the NixOS manual (accessible by running ‘nixos-help’).
  5.  
  6. { config, pkgs, ... }:
  7.  
  8. {
  9. imports =
  10. [ # Include the results of the hardware scan.
  11. ./hardware-configuration.nix
  12. ];
  13.  
  14. # Use the systemd-boot EFI boot loader.
  15. boot.loader.systemd-boot.enable = true;
  16. boot.loader.efi.canTouchEfiVariables = true;
  17.  
  18. networking.hostName = "nixos"; # Define your hostname.
  19. networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  20.  
  21. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  22. # Per-interface useDHCP will be mandatory in the future, so this generated config
  23. # replicates the default behaviour.
  24. networking.useDHCP = false;
  25. networking.interfaces.enp2s0.useDHCP = true;
  26. networking.interfaces.wlp4s0.useDHCP = true;
  27.  
  28. # Configure network proxy if necessary
  29. # networking.proxy.default = "http://user:password@proxy:port/";
  30. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  31.  
  32. # Select internationalisation properties.
  33. # i18n.defaultLocale = "en_US.UTF-8";
  34. # console = {
  35. # font = "Lat2-Terminus16";
  36. # keyMap = "us";
  37. # };
  38.  
  39. # Set your time zone.
  40. # time.timeZone = "Europe/Amsterdam";
  41.  
  42. # List packages installed in system profile. To search, run:
  43. # $ nix search wget
  44. # environment.systemPackages = with pkgs; [
  45. # wget vim
  46. # ];
  47.  
  48. # Some programs need SUID wrappers, can be configured further or are
  49. # started in user sessions.
  50. # programs.mtr.enable = true;
  51. # programs.gnupg.agent = {
  52. # enable = true;
  53. # enableSSHSupport = true;
  54. # pinentryFlavor = "gnome3";
  55. # };
  56.  
  57. # List services that you want to enable:
  58.  
  59. # Enable the OpenSSH daemon.
  60. services.openssh.enable = true;
  61.  
  62. # Open ports in the firewall.
  63. networking.firewall.allowedTCPPorts = [ ... ];
  64. networking.firewall.allowedUDPPorts = [ ... ];
  65. # Or disable the firewall altogether.
  66. # networking.firewall.enable = false;
  67.  
  68. # Enable CUPS to print documents.
  69. services.printing.enable = true;
  70.  
  71. # Enable sound.
  72. sound.enable = true;
  73. hardware.pulseaudio.enable = true;
  74.  
  75. # Enable the X11 windowing system.
  76. services.xserver.enable = true;
  77. services.xserver.layout = "us";
  78. services.xserver.xkbOptions = "eurosign:e";
  79.  
  80. # Enable touchpad support.
  81. services.xserver.libinput.enable = true;
  82.  
  83. # Enable the KDE Desktop Environment.
  84. services.xserver.displayManager.sddm.enable = true;
  85. services.xserver.desktopManager.plasma5.enable = true;
  86.  
  87. # Define a user account. Don't forget to set a password with ‘passwd’.
  88. users.users.me = {
  89. isNormalUser = true;
  90. extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
  91. # };
  92.  
  93. # This value determines the NixOS release from which the default
  94. # settings for stateful data, like file locations and database versions
  95. # on your system were taken. It‘s perfectly fine and recommended to leave
  96. # this value at the release version of the first install of this system.
  97. # Before changing this value read the documentation for this option
  98. # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
  99. system.stateVersion = "20.03"; # Did you read the comment?
  100.  
  101. }
Add Comment
Please, Sign In to add comment