Files
cnix/system/modules/sysd/network/openssh/default.nix
2024-10-13 18:09:15 +02:00

18 lines
315 B
Nix

{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.systemModules.sysd.network.openssh;
in {
options = {
systemModules.sysd.network.openssh.enable = mkEnableOption "Enables openssh";
};
config = mkIf cfg.enable {
services.openssh = {
enable = true;
};
};
}