fix(monitoring): wrap in block
This commit is contained in:
parent
c613a28a45
commit
58effd5966
1 changed files with 8 additions and 2 deletions
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue