diff --git a/hosts/skipper/services/default.nix b/hosts/skipper/services/default.nix index 68435d3..ddec889 100644 --- a/hosts/skipper/services/default.nix +++ b/hosts/skipper/services/default.nix @@ -5,6 +5,7 @@ in { ./dbus.nix ./pipewire.nix ./udev.nix + ./ssh.nix ]; services = { blueman.enable = true; diff --git a/hosts/skipper/services/ssh.nix b/hosts/skipper/services/ssh.nix new file mode 100644 index 0000000..59ff254 --- /dev/null +++ b/hosts/skipper/services/ssh.nix @@ -0,0 +1,21 @@ +_: { + services.openssh = { + enable = true; + settings = { + PasswordAuthentication = false; + KbdInteractiveAuthentication = false; + PermitRootLogin = "no"; + }; + hostKeys = [ + { + path = "/etc/ssh/keys/ssh_host_ed25519_key"; + type = "ed25519"; + } + { + path = "/etc/ssh/keys/ssh_host_rsa_key"; + type = "rsa"; + bits = "4096"; + } + ]; + }; +}