# This wraps the monitoring service module to allow it to be # imported conditionally. { me, 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 me lib pkgs auxiliaryPkgs; }); }