diff options
Diffstat (limited to 'services/monitoring/wrapper.nix')
| -rw-r--r-- | services/monitoring/wrapper.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/services/monitoring/wrapper.nix b/services/monitoring/wrapper.nix new file mode 100644 index 0000000..416ae22 --- /dev/null +++ b/services/monitoring/wrapper.nix @@ -0,0 +1,15 @@ +# This wraps the monitoring service module to allow it to be +# imported conditionally. +{ lib, pkgs, auxiliaryPkgs, config, ... }: + +let + enabled = config.foundation.internal.monitoringService; + module = import ./.; +in +{ + options.foundation.internal = { + monitoringService = lib.mkEnableOption "monitoring service"; + }; + + config = lib.mkIf enabled (module { inherit lib pkgs auxiliaryPkgs; }); +} |
