Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. { config, pkgs, ... }:
  2.  
  3. {
  4. imports =
  5. [
  6. ./hardware-configuration.nix
  7. ];
  8.  
  9. ### BOOT
  10.  
  11. boot.isContainer = true;
  12. boot.loader.initScript.enable = true;
  13.  
  14. ### CONSOLE
  15.  
  16. i18n =
  17. {
  18. consoleKeyMap = "neo";
  19. consoleFont = "Lat2-Terminus16";
  20. defaultLocale = "en_GB.UTF-8";
  21. };
  22.  
  23. ### TIME
  24.  
  25. time.timeZone = "Europe/Berlin";
  26.  
  27. ### SYSTEM
  28.  
  29. networking.hostName = "nixos";
  30.  
  31. system.stateVersion = "16.09";
  32. system.autoUpgrade.enable = true;
  33.  
  34. ### PACKAGES
  35.  
  36. environment.systemPackages = with pkgs;
  37. [
  38. vim
  39. tmux
  40. htop
  41. git
  42. nixops
  43. socat
  44. netcat
  45. ];
  46.  
  47. ### SERVICES
  48.  
  49. services.openssh.enable = true;
  50. security.sudo.enable = true;
  51.  
  52. ### SECURITY
  53.  
  54. services.openssh.permitRootLogin = pkgs.lib.mkForce "no";
  55. services.openssh.challengeResponseAuthentication = false;
  56. services.openssh.passwordAuthentication = false;
  57.  
  58. security.sudo.wheelNeedsPassword = false;
  59.  
  60. ### NETWORKING
  61.  
  62. networking.firewall.enable = false;
  63. # networking.firewall.rejectPackets = true;
  64. # networking.firewall.allowedTCPPorts =
  65. # [
  66. # 22
  67. # 1337
  68. # ];
  69.  
  70. ### USERS
  71.  
  72. users.users.benaryorg =
  73. {
  74. isNormalUser = true;
  75. uid = 1000;
  76. extraGroups = ["wheel"];
  77. shell = pkgs.zsh;
  78. createHome = true;
  79. openssh.authorizedKeys.keys =
  80. [
  81. "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJeMwhpNHMB7Hb5WWikqTywPLX+H5JvdysIfUZsVKI2yOeUqbeEEsvfTSD08qSU3J1ioUSu312WPd4voOQnPknLsLtEBWSM96vWtQXR5EU0riA60KvN5AOsAyxl3j7taiH99RIZWzQSMxM8BNkNJfWE4bmg9VHHk5/8W8hCOZiHY0iMrqCfyoE/hCV4T+U2tZVJ9OIDtAVCQW/SMg3N1eBhbelFr7EdncRa19RAp7xc+Wk9unm87EvCxhE332FS/4S+lESdaUn6HmNszjKPfOg/OxKKR+I7OMdBRKJOgc35Xq78j75XizX3o6PdlHX1zKSdGwBTYTM2xFt9Eshxd6f"
  82. ];
  83. };
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement