diff options
Diffstat (limited to 'hosts/vidhar/prometheus')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 50f9338d..5e33a8d0 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix | |||
@@ -341,11 +341,17 @@ in { | |||
341 | 341 | ||
342 | systemd.services."prometheus-smartctl-exporter" = { | 342 | systemd.services."prometheus-smartctl-exporter" = { |
343 | serviceConfig = { | 343 | serviceConfig = { |
344 | DeviceAllow = lib.mkOverride 200 [ | 344 | DeviceAllow = lib.mkForce (map (dev: "/dev/disk/by-path/${dev}") [ |
345 | "block-blkext rw" | 345 | "pci-0000:00:1f.2-ata-1" |
346 | "block-sd rw" | 346 | "pci-0000:00:1f.2-ata-3" |
347 | "char-nvme rw" | 347 | "pci-0000:00:1f.2-ata-4" |
348 | ]; | 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 | ]); | ||
349 | }; | 355 | }; |
350 | }; | 356 | }; |
351 | }; | 357 | }; |