diff options
Diffstat (limited to 'hosts/vidhar')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 12 |
1 files changed, 1 insertions, 11 deletions
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 { | |||
341 | 341 | ||
342 | systemd.services."prometheus-smartctl-exporter" = { | 342 | systemd.services."prometheus-smartctl-exporter" = { |
343 | serviceConfig = { | 343 | serviceConfig = { |
344 | DeviceAllow = lib.mkForce (map (dev: "/dev/disk/by-path/${dev}") [ | 344 | DeviceAllow = lib.mkForce config.services.prometheus.exporters.smartctl.devices; |
345 | "pci-0000:00:1f.2-ata-1" | ||
346 | "pci-0000:00:1f.2-ata-3" | ||
347 | "pci-0000:00:1f.2-ata-4" | ||
348 | "pci-0000:00:1f.2-ata-5" | ||
349 | "pci-0000:00:1f.2-ata-6" | ||
350 | "pci-0000:02:00.0-nvme-1" | ||
351 | "pci-0000:05:00.0-sas-phy0-lun-0" | ||
352 | "pci-0000:05:00.0-sas-phy1-lun-0" | ||
353 | "pci-0000:06:00.0-nvme-1" | ||
354 | ]); | ||
355 | }; | 345 | }; |
356 | }; | 346 | }; |
357 | }; | 347 | }; |