Guest User

Untitled

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