dotfiles.nix/nixos/common/global/ssh.nix
2024-01-21 21:03:57 +08:00

13 lines
178 B
Nix

{ ... }:
{
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
openFirewall = true;
};
}