diff options
Diffstat (limited to 'modules/base-server.nix')
-rw-r--r-- | modules/base-server.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/modules/base-server.nix b/modules/base-server.nix new file mode 100644 index 0000000..0e060e1 --- /dev/null +++ b/modules/base-server.nix @@ -0,0 +1,45 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + ./base.nix + ]; + + boot = { + loader = { + grub = { + enable = true; + version = 2; + device = "/dev/sda"; # nodev for EFI only + + # EFI + efiSupport = false; + efiInstallAsRemovable = false; + }; + }; + }; + + networking = { + hostName = lib.mkDefault "Rory-nix-base-server"; + firewall = { + enable = false; + # allowedTCPPorts = [ ... ]; + # allowedUDPPorts = [ ... ]; + }; + }; + + services = { + openssh = { + enable = true; + #allow more logins in cases where i have many ssh keys on a system + extraConfig = '' + MaxAuthTries 32 + ''; + }; + }; + + + system.stateVersion = "22.11"; # DO NOT EDIT! +} + |