From 147bd86ad56dbd9363eea6a6b95f17092cd48ac0 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 23 May 2024 21:48:23 +0100 Subject: [PATCH] fix: get the attributes merging correctly --- applications/prometheus.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/applications/prometheus.nix b/applications/prometheus.nix index 7c53f77..cd0dfcc 100644 --- a/applications/prometheus.nix +++ b/applications/prometheus.nix @@ -43,7 +43,7 @@ in { }; }; - config = + config = mkMerge [ { services.prometheus.exporters.node = { enable = true; @@ -52,7 +52,7 @@ in { port = cfg.port_collecter; }; } - // mkIf cfg.server.enable { + (mkIf cfg.server.enable { services.prometheus = { enable = true; port = cfg.server.port; @@ -67,5 +67,6 @@ in { } ]; }; - }; + }) + ]; }