From a4f3ae80a7383d0d4a3e2b0c1847954c17b95282 Mon Sep 17 00:00:00 2001 From: Abhishek Singh Date: Thu, 22 Feb 2024 01:36:16 +0530 Subject: [PATCH] use lib.recursiveUpdate for deep merge --- nix/grafana/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/grafana/default.nix b/nix/grafana/default.nix index c3937a9e..76471569 100644 --- a/nix/grafana/default.nix +++ b/nix/grafana/default.nix @@ -43,14 +43,15 @@ in default = { processes."${name}" = let - grafanaConfig = + grafanaConfig = lib.recursiveUpdate { server = { protocol = "http"; http_port = config.port; domain = "localhost"; }; - } // config.extraConf; + } + config.extraConf; grafanaConfigIni = iniFormat.generate "defaults.ini" grafanaConfig; startScript = pkgs.writeShellApplication { name = "start-grafana";