puter/common/system/features/openssh.nix
2023-09-29 20:39:08 +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;
};
};
}