Files
nixos/modules/nix/openssh.nix
2024-10-22 14:52:33 -05:00

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;
};
};
};
}