universe/host/services/openssh.nix
2025-03-14 16:40:36 +00:00

18 lines
265 B
Nix

{
lib,
config,
...
}: let
cfg = config.universe.services.openssh;
in {
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
ports = cfg.ports;
settings = {
PasswordAuthentication = false;
};
};
};
}