dotfiles.nix/nixos/common/global/ssh.nix

15 lines
235 B
Nix
Raw Normal View History

2024-01-14 06:29:18 +08:00
{ ... }:
{
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
2024-06-06 20:34:19 +08:00
AllowUsers = [ "sajenim" ];
2024-01-14 06:29:18 +08:00
};
2024-06-06 20:34:19 +08:00
ports = [ 62841 ];
2024-01-14 06:29:18 +08:00
openFirewall = true;
};
}