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