blob: 416ae22bc971b47c7827f6f06a906c820c83b029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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; });
}
|