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