nixos-system/modules/ssh.nix

12 lines
259 B
Nix
Raw Normal View History

2024-04-08 19:36:52 -04:00
{lib, ...}: {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "yes";
KbdInteractiveAuthentication = false;
PasswordAuthentication = lib.mkForce false;
PubkeyAuthentication = lib.mkForce true;
};
};
}