diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-12 20:29:41 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-12 20:29:41 +0100 |
commit | 03499ec70ba37ea2535342aa2ff9801cae6fd30a (patch) | |
tree | a16b8fad123a321aa0bca1629a35c440408ceb93 /hosts | |
parent | 7c4e16c951fca7279329b1e1c912b76e4203c633 (diff) | |
download | nixos-03499ec70ba37ea2535342aa2ff9801cae6fd30a.tar nixos-03499ec70ba37ea2535342aa2ff9801cae6fd30a.tar.gz nixos-03499ec70ba37ea2535342aa2ff9801cae6fd30a.tar.bz2 nixos-03499ec70ba37ea2535342aa2ff9801cae6fd30a.tar.xz nixos-03499ec70ba37ea2535342aa2ff9801cae6fd30a.zip |
vidhar: ...
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/vidhar/prometheus/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
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 { | |||
338 | --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags} | 338 | --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags} |
339 | ''; | 339 | ''; |
340 | }; | 340 | }; |
341 | |||
342 | systemd.services."prometheus-smartctl-exporter" = { | ||
343 | serviceConfig = { | ||
344 | DeviceAllow = lib.mkOverride 200 [ | ||
345 | "block-blkext rw" | ||
346 | "block-sd rw" | ||
347 | "char-nvme rw" | ||
348 | ]; | ||
349 | }; | ||
350 | }; | ||
341 | }; | 351 | }; |
342 | } | 352 | } |