Files
MinOS-prime/nixos/open-ssh.nix
2025-07-11 18:08:12 +03:00

15 lines
258 B
Nix

{ ... }:
{
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
AllowUsers = [ "xnm" ];
};
};
}