{ pkgs, lib, config, ... }: let cfg = config.xyno.services.monitoring; in { options.xyno.services.monitoring.enable = lib.mkEnableOption "enables monitoring (prometheus exporters and stuff)"; options.xyno.services.monitoring.ip = lib.mkOption { type = lib.types.str; default = "::1"; description = "the ip prometheus exporters should listen to"; }; config = lib.mkIf cfg.enable { }; }