23 lines
367 B
Nix
23 lines
367 B
Nix
{ lib
|
|
, pkgs
|
|
, config
|
|
, ...
|
|
}:
|
|
|
|
with lib; let
|
|
cfg = config.simmer.openssh;
|
|
in
|
|
{
|
|
config = mkIf cfg.enable {
|
|
services.openssh = {
|
|
enable = true;
|
|
ports = [ cfg.port ];
|
|
settings = {
|
|
PermitRootLogin = "no";
|
|
PasswordAuthentication = cfg.allow-password;
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|