marleyos/modules/nixos/services/openssh/default.nix

18 lines
323 B
Nix

{
lib,
config,
...
}: let
cfg = config.marleyos.services.openssh;
in {
options.marleyos.services.openssh.enable = lib.mkEnableOption "openssh";
config = lib.mkIf cfg.enable {
services.openssh = {
enable = true;
settings = {
PermitRootLogin = "prohibit-password";
};
};
};
}