From e8cb5f3af25eecc78c45153dbb8efa43d7145f1d Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 19 Jul 2024 12:00:15 +0200 Subject: [PATCH] smartctl_exporter: Fix guard --- modules/prometheus/smartctl_exporter.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prometheus/smartctl_exporter.nix b/modules/prometheus/smartctl_exporter.nix index 7938d35..d985204 100644 --- a/modules/prometheus/smartctl_exporter.nix +++ b/modules/prometheus/smartctl_exporter.nix @@ -4,9 +4,9 @@ { config, lib, ... }: -{ +lib.mkIf (config.sbruder.wireguard.home.enable && !config.sbruder.machine.isVm) { services.prometheus.exporters.smartctl = { - enable = config.sbruder.wireguard.home.enable && !config.sbruder.machine.isVm; + enable = true; listenAddress = config.sbruder.wireguard.home.address; # devices need to be specified for all systems that use NVMe # https://github.com/NixOS/nixpkgs/issues/210041