From b4ac29c05d3507d806627b2afa17dd1d41a28348 Mon Sep 17 00:00:00 2001 From: noe Date: Sat, 10 Feb 2024 19:19:14 -0500 Subject: [PATCH] monitoring --- nixos/hosts/monitoring/default.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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"; + }; + }; }; }