From edb4381d0d2a74bc30f18aecd8bbeb8aa0910800 Mon Sep 17 00:00:00 2001 From: prescientmoon Date: Sat, 24 Feb 2024 06:57:37 +0100 Subject: [PATCH] Fix outdated grafana option names --- hosts/nixos/lapetus/services/grafana.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/lapetus/services/grafana.nix b/hosts/nixos/lapetus/services/grafana.nix index 33ca90f..04cdcc1 100644 --- a/hosts/nixos/lapetus/services/grafana.nix +++ b/hosts/nixos/lapetus/services/grafana.nix @@ -15,9 +15,8 @@ in enable = true; settings = { - domain = "grafana.moonythm.dev"; - port = 8409; - addr = "127.0.0.1"; + server.domain = "grafana.moonythm.dev"; + server.http_port = 8409; # {{{ Smtp smtp = { @@ -54,8 +53,8 @@ in }; # }}} # {{{ Networking & storage - services.nginx.virtualHosts.${config.services.grafana.domain} = - config.satellite.proxy config.services.grafana.port { }; + services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = + config.satellite.proxy config.services.grafana.settings.server.http_port { }; environment.persistence."/persist/state".directories = [ config.services.grafana.dataDir