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

15 lines
235 B
Nix

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