Files
nixos-config/home/services/openssh.nix
2024-03-03 13:15:52 +01:00

16 lines
230 B
Nix

{ ... }:
{
services = {
ssh-agent = { enable = true; };
openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = "prohibit-password";
};
};
};
}