From 39ce4ddd85bad02d48c7c0588d50ee03af6a8ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 8 Jan 2022 20:42:32 +0100 Subject: [PATCH] nixos/prometheus: fix usage of bearer_token --- nixos/modules/services/monitoring/prometheus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. '';