nixos-system/modules/ssh.nix
2024-04-08 19:36:52 -04:00

12 lines
259 B
Nix

{lib, ...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
KbdInteractiveAuthentication = false;
PasswordAuthentication = lib.mkForce false;
PubkeyAuthentication = lib.mkForce true;
};
};
}