1
0
Fork 0
puter/common/ssh.nix
2025-05-11 22:49:04 +02:00

18 lines
356 B
Nix

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