From 4e319a99515f203b7795a5a93174b18aebe82e8e Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 12 Feb 2022 20:39:41 +0100 Subject: vidhar: ... --- hosts/vidhar/prometheus/default.nix | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'hosts/vidhar') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 5e33a8d0..76c4e3ff 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -341,17 +341,7 @@ in { systemd.services."prometheus-smartctl-exporter" = { serviceConfig = { - DeviceAllow = lib.mkForce (map (dev: "/dev/disk/by-path/${dev}") [ - "pci-0000:00:1f.2-ata-1" - "pci-0000:00:1f.2-ata-3" - "pci-0000:00:1f.2-ata-4" - "pci-0000:00:1f.2-ata-5" - "pci-0000:00:1f.2-ata-6" - "pci-0000:02:00.0-nvme-1" - "pci-0000:05:00.0-sas-phy0-lun-0" - "pci-0000:05:00.0-sas-phy1-lun-0" - "pci-0000:06:00.0-nvme-1" - ]); + DeviceAllow = lib.mkForce config.services.prometheus.exporters.smartctl.devices; }; }; }; -- cgit v1.2.3