CrOS/modules/security/ssh.nix
2025-04-29 14:43:38 -04:00

15 lines
272 B
Nix

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