Skip to content

Commit

Permalink
use lib.recursiveUpdate for deep merge
Browse files Browse the repository at this point in the history
  • Loading branch information
conscious-puppet committed Feb 21, 2024
1 parent 3fe73a1 commit a4f3ae8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix/grafana/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit a4f3ae8

Please sign in to comment.