Files
MinOS-prime/nixos/open-ssh.nix

15 lines
260 B
Nix

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