summaryrefslogtreecommitdiff
path: root/hosts/vidhar/prometheus/default.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-12 20:39:41 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-12 20:39:41 +0100
commit4e319a99515f203b7795a5a93174b18aebe82e8e (patch)
tree99471589b8173f53bc01f19e3914de1cef72d7ef /hosts/vidhar/prometheus/default.nix
parent32d34af4d40c8cde08a720adf27d0f3b73671daa (diff)
downloadnixos-4e319a99515f203b7795a5a93174b18aebe82e8e.tar
nixos-4e319a99515f203b7795a5a93174b18aebe82e8e.tar.gz
nixos-4e319a99515f203b7795a5a93174b18aebe82e8e.tar.bz2
nixos-4e319a99515f203b7795a5a93174b18aebe82e8e.tar.xz
nixos-4e319a99515f203b7795a5a93174b18aebe82e8e.zip
vidhar: ...
Diffstat (limited to 'hosts/vidhar/prometheus/default.nix')
-rw-r--r--hosts/vidhar/prometheus/default.nix12
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 };