Advertisement
Guest User

config

a guest
Sep 21st, 2019
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 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 systemd-boot EFI boot loader.
  14. boot.loader.systemd-boot.enable = true;
  15. boot.loader.efi.canTouchEfiVariables = true;
  16. boot.supportedFilesystems = [ "zfs" ];
  17. # boot.kernelParams = [ "intel_iommu=on" ];
  18.  
  19. networking = {
  20. hostId = "92f27417";
  21. hostName = "nixkm";
  22. interfaces.enp7s0.ipv4 = [{
  23. address = "10.84.22.4";
  24. prefixLength = 24;
  25. }];
  26. defaultGateway = "10.84.22.1";
  27. nameservers = [ "10.84.22.1" ];
  28. };
  29.  
  30.  
  31. # networking.hostId = "92f27417";
  32. # networking.hostName = "nixos"; # Define your hostname.
  33. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
  34.  
  35. # Configure network proxy if necessary
  36. # networking.proxy.default = "http://user:password@proxy:port/";
  37. # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
  38.  
  39. # Select internationalisation properties.
  40. i18n = {
  41. consoleFont = "Lat2-Terminus16";
  42. consoleKeyMap = "de";
  43. defaultLocale = "de_AT.UTF-8";
  44. };
  45.  
  46. # Set your time zone.
  47. time.timeZone = "Europe/Vienna";
  48.  
  49. # List packages installed in system profile. To search, run:
  50. # $ nix search wget
  51. # environment.systemPackages = with pkgs; [
  52. # wget vim
  53. # wget nano
  54. # ];
  55. # Some programs need SUID wrappers, can be configured further or are
  56. # started in user sessions.
  57. # programs.mtr.enable = true;
  58. # programs.gnupg.agent = { enable = true; enableSSHSupport = true; };
  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 = [ ... ];
  67. # networking.firewall.allowedUDPPorts = [ ... ];
  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";
  81. # services.xserver.xkbOptions = "eurosign:e";
  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.km = {
  92. isNormalUser = true;
  93. extraGroups = [ "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.03"; # Did you read the comment?
  101.  
  102. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement