puter/common/nixos/features/openssh.nix
2023-09-17 13:31:20 +02:00

17 lines
282 B
Nix

{
services.openssh = {
enable = true;
openFirewall = true;
hostKeys = [
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}