smartctl_exporter: Fix guard
This commit is contained in:
parent
e343709b50
commit
e8cb5f3af2
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue