smartctl_exporter: Fix guard

This commit is contained in:
Simon Bruder 2024-07-19 12:00:15 +02:00
parent 900d7fac74
commit d7600be2e3
Signed by: simon
GPG key ID: 347FF8699CDA0776

View file

@ -4,9 +4,9 @@
{ config, lib, ... }: { config, lib, ... }:
{ lib.mkIf (config.sbruder.wireguard.home.enable && !config.sbruder.machine.isVm) {
services.prometheus.exporters.smartctl = { services.prometheus.exporters.smartctl = {
enable = config.sbruder.wireguard.home.enable && !config.sbruder.machine.isVm; enable = true;
listenAddress = config.sbruder.wireguard.home.address; listenAddress = config.sbruder.wireguard.home.address;
# devices need to be specified for all systems that use NVMe # devices need to be specified for all systems that use NVMe
# https://github.com/NixOS/nixpkgs/issues/210041 # https://github.com/NixOS/nixpkgs/issues/210041