smartctl_exporter: Fix guard

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

View file

@ -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