From 3c3f38bda05a9068d30a215582c7022fa20ee825 Mon Sep 17 00:00:00 2001 From: c6ristian Date: Wed, 5 Mar 2025 21:10:13 +0100 Subject: [PATCH] grafana: fix error undefing var config and firewall config --- systems/grafana.noc.eh22.intern.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/systems/grafana.noc.eh22.intern.nix b/systems/grafana.noc.eh22.intern.nix index f1ee937..88de6ef 100644 --- a/systems/grafana.noc.eh22.intern.nix +++ b/systems/grafana.noc.eh22.intern.nix @@ -1,10 +1,13 @@ { pkgs, + config, ... }: { imports = []; + # configure static IP address + networking.useDHCP = false; systemd.network = { enable = true; networks = { @@ -15,6 +18,8 @@ }; }; }; + + networking.firewall.allowedTCPPorts = [ 80 ]; services.grafana = { enable = true; @@ -32,6 +37,8 @@ }; }; + + sops = { defaultSopsFile = ../secrets/passwords.yaml; "vms"."grafana"."admin_password" = {