Files
nix/modules/sshd.nix
2026-03-27 20:46:55 +00:00

17 lines
429 B
Nix

_: {
services.openssh = {
enable = true;
settings.PasswordAuthentication = false;
settings.KbdInteractiveAuthentication = false;
hostKeys = [
# Generate a key if it's missing, which is normal at first boot, but can
# also be a TPM failure for PCs with a TPM.
# Do not generate an RSA key.
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
}