dotfiles.nix/nixos/common/global/ssh.nix
2024-06-06 20:56:17 +08:00

14 lines
201 B
Nix

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