Files
nixos/modules/openssh.nix
2024-05-29 15:24:31 -05:00

17 lines
248 B
Nix

{ lib
, pkgs
, openssh-port ? 22
, ...
}:
{
services.openssh = {
enable = true;
ports = [ openssh-port ];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
}