fix(monitoring): wrap in block

This commit is contained in:
Tibo De Peuter 2026-08-05 20:23:38 +02:00
parent c613a28a45
commit 58effd5966
Signed by: tdpeuter
SSH key fingerprint: SHA256:u/h/LVoqKF1Iz02uOyxe6hcjmoZASCGV2HM0TG9ZMoU

View file

@ -1,6 +1,11 @@
{ config, lib, pkgs, ... }:
{
let
cfg = config.homelab.apps.monitoring;
in {
options.homelab.apps.monitoring.enable = lib.mkEnableOption "Homelab Monitoring Stack";
config = lib.mkIf cfg.enable {
sops.secrets."grafana/admin_password" = {
sopsFile = ../../../../secrets/prod/monitoring.yaml;
};
@ -155,4 +160,5 @@
# Open firewall for Loki so agents can push logs
networking.firewall.allowedTCPPorts = [ 3100 ];
};
}