diff --git a/systems/grafana.noc.eh22.intern.nix b/systems/grafana.noc.eh22.intern.nix index f1ee937..2cdb23b 100644 --- a/systems/grafana.noc.eh22.intern.nix +++ b/systems/grafana.noc.eh22.intern.nix @@ -1,10 +1,14 @@ { pkgs, + config, + modulesPath, ... }: { imports = []; + # configure static IP address + networking.useDHCP = false; systemd.network = { enable = true; networks = { @@ -16,6 +20,8 @@ }; }; + networking.firewall.allowedTCPPorts = [ 80 ]; + services.grafana = { enable = true; security.admin_password = "$__file{${sops.secrets.vms.grafana.admin_password.path}}"; @@ -32,6 +38,8 @@ }; }; + + sops = { defaultSopsFile = ../secrets/passwords.yaml; "vms"."grafana"."admin_password" = {