nixos/prometheus: fix usage of bearer_token
commit39ce4ddd85bad02d48c7c0588d50ee03af6a8ef9
authorSandro Jäckel <sandro.jaeckel@gmail.com>
dateSat 8 Jan 2022, 20:42 (5 years ago)
parent41d2ab4
nixos/modules/services/monitoring/prometheus/default.nix+2−2
@@ -252,8 +252,8 @@ let
252252 promTypes.scrape_config = types.submodule {
253253 options = {
254254 authorization = mkOption {
255− type = types.attrs;
256− default = {};
255+ type = types.nullOr types.attrs;
256+ default = null;
257257 description = ''
258258 Sets the `Authorization` header on every scrape request with the configured credentials.
259259 '';