marleyos/modules/nixos/services/openssh/default.nix
2025-02-17 20:40:41 -08:00

18 lines
308 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 = "no";
};
};
};
}