diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-12 20:31:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-12 20:31:38 +0100 |
commit | 32d34af4d40c8cde08a720adf27d0f3b73671daa (patch) | |
tree | 471a0c7ead52047534a4c5d2d8cb12d37b9fb049 /hosts/vidhar/prometheus/default.nix | |
parent | 03499ec70ba37ea2535342aa2ff9801cae6fd30a (diff) | |
download | nixos-32d34af4d40c8cde08a720adf27d0f3b73671daa.tar nixos-32d34af4d40c8cde08a720adf27d0f3b73671daa.tar.gz nixos-32d34af4d40c8cde08a720adf27d0f3b73671daa.tar.bz2 nixos-32d34af4d40c8cde08a720adf27d0f3b73671daa.tar.xz nixos-32d34af4d40c8cde08a720adf27d0f3b73671daa.zip |
vidhar: ...
Diffstat (limited to 'hosts/vidhar/prometheus/default.nix')
-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 | }; |