nixos-configuration/modules/sshd.nix
2023-09-24 14:56:07 +02:00

14 lines
269 B
Nix

{...}: {
config = {
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "without-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
};
}