nixos-configuration/modules/sshd.nix

14 lines
269 B
Nix
Raw Normal View History

2023-09-24 14:56:07 +02:00
{...}: {
config = {
services.openssh = {
enable = true;
openFirewall = true;
settings = {
PermitRootLogin = "without-password";
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
};
};
};
}