Guest User

Untitled

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