Files
lux-old/modules/services/openssh.nix
2026-03-03 16:30:58 +01:00

13 lines
295 B
Nix

{ den, lib, ... }:
{
lux.services._.openssh = den.lib.take.exactly ({ host }: {
nixos.services.openssh = {
enable = true;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
AllowUsers = lib.attrNames host.users;
};
};
});
}