Guest User

Untitled

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