Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 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.networkmanager.enable = true;
  23. networking.hostName = "dell5547"; # Define your hostname.
  24. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  25.  
  26. # The global useDHCP flag is deprecated, therefore explicitly set to false here.
  27. # Per-interface useDHCP will be mandatory in the future, so this generated config
  28. # replicates the default behaviour.
  29. networking.useDHCP = false;
  30. networking.interfaces.enp1s0.useDHCP = false;
  31. networking.interfaces.wlp2s0.useDHCP = false;
  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 = {
  39. # consoleFont = "Lat2-Terminus16";
  40. # consoleKeyMap = "us";
  41. # defaultLocale = "en_US.UTF-8";
  42. # };
  43.  
  44. # Set your time zone.
  45. time.timeZone = "Europe/Yekaterinburg";
  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 = { enable = true; enableSSHSupport = true; };
  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. services.xserver.videoDrivers = [ "intel" "amdgpu" ];
  81.  
  82. # Enable touchpad support.
  83. services.xserver.libinput.enable = true;
  84.  
  85. # Enable the KDE Desktop Environment.
  86. # services.xserver.displayManager.sddm.enable = true;
  87. services.xserver.desktopManager.plasma5.enable = true;
  88.  
  89. # Define a user account. Don't forget to set a password with ‘passwd’.
  90. users.users.andalevor = {
  91. isNormalUser = true;
  92. home = "/home/andalevor";
  93. extraGroups = [ "networkmanager" "wheel" ]; # Enable ‘sudo’ for the user.
  94. };
  95.  
  96. # This value determines the NixOS release with which your system is to be
  97. # compatible, in order to avoid breaking some software such as database
  98. # servers. You should change this only after NixOS release notes say you
  99. # should.
  100. system.stateVersion = "19.09"; # Did you read the comment?
  101.  
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement