From 2432ef351e23e794b11a73f1e1b8f4dc719985dd Mon Sep 17 00:00:00 2001 From: c6ristian <c6ristian@christian.moe> Date: Wed, 5 Mar 2025 22:10:43 +0100 Subject: [PATCH] grafana: its settings.security.admin_password --- systems/grafana.noc.eh22.intern.nix | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/systems/grafana.noc.eh22.intern.nix b/systems/grafana.noc.eh22.intern.nix index d5ce761..f77c534 100644 --- a/systems/grafana.noc.eh22.intern.nix +++ b/systems/grafana.noc.eh22.intern.nix @@ -6,7 +6,7 @@ ... }: { - imports = []; + imports = [ ]; sops = { defaultSopsFile = ../secrets/passwords.yaml; @@ -35,22 +35,24 @@ services.grafana = { enable = true; - security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}"; - settings.server = { - domain = "grafana.noc.eh22.intern"; - root_url = "http://grafana.noc.eh22.intern/"; + settings = { + security.admin_password = "$__file{${config.sops.secrets."vms/grafana/admin_password".path}}"; + server = { + domain = "grafana.noc.eh22.intern"; + root_url = "http://grafana.noc.eh22.intern/"; + }; }; }; services.nginx.virtualHosts.${config.services.grafana.domain} = { locations."/" = { - proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; - proxyWebsockets = true; + proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; + proxyWebsockets = true; }; }; # DO NOT CHANGE # this defines the first version of NixOS that was installed on the machine so that programs with non-migratable data files are kept compatible home-manager.users.noc.home.stateVersion = "24.11"; - system.stateVersion = "24.11"; -} \ No newline at end of file + system.stateVersion = "24.11"; +}