diff --git a/nixos/modules/services/monitoring/prometheus/default.nix b/nixos/modules/services/monitoring/prometheus/default.nix index b36b5fd0650..f563861b61c 100644 --- a/nixos/modules/services/monitoring/prometheus/default.nix +++ b/nixos/modules/services/monitoring/prometheus/default.nix @@ -252,8 +252,8 @@ let promTypes.scrape_config = types.submodule { options = { authorization = mkOption { - type = types.attrs; - default = {}; + type = types.nullOr types.attrs; + default = null; description = '' Sets the `Authorization` header on every scrape request with the configured credentials. '';