From 03499ec70ba37ea2535342aa2ff9801cae6fd30a Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 12 Feb 2022 20:29:41 +0100 Subject: vidhar: ... --- hosts/vidhar/prometheus/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'hosts/vidhar/prometheus') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 1cadde8b..50f9338d 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -338,5 +338,15 @@ in { --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags} ''; }; + + systemd.services."prometheus-smartctl-exporter" = { + serviceConfig = { + DeviceAllow = lib.mkOverride 200 [ + "block-blkext rw" + "block-sd rw" + "char-nvme rw" + ]; + }; + }; }; } -- cgit v1.2.3