diff --git a/nixos/hosts/monitoring/default.nix b/nixos/hosts/monitoring/default.nix index c2c9f0b..38f25c7 100644 --- a/nixos/hosts/monitoring/default.nix +++ b/nixos/hosts/monitoring/default.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, config, ... }: { imports = [ ../../templates/proxmox-lxc.nix ../../server.nix @@ -10,10 +10,17 @@ nixpkgs.hostPlatform = "x86_64-linux"; networking.firewall.allowedTCPPorts = [ - 80 + config.services.grafana.settings.server.http_port ]; services.grafana = { enable = true; + settings = { + server = { + http_addr = "0.0.0.0"; + http_port = 3000; + domain = "monitoring.hoki-porgy.ts.net"; + }; + }; }; }