summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-12-29 20:57:10 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-12-29 20:57:10 +0100
commit663f28bbabed1058336c1ef7bf22fd2f9492501c (patch)
treedd3027ab6f9ae061211ea4cf11e34c099d8ec92d /hosts
parenteff300d09562b46d90747fe260c4d9a3b1339ca8 (diff)
downloadnixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar
nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.gz
nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.bz2
nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.tar.xz
nixos-663f28bbabed1058336c1ef7bf22fd2f9492501c.zip
...
Diffstat (limited to 'hosts')
-rw-r--r--hosts/vidhar/prometheus/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix
index ea185788..13eec1b1 100644
--- a/hosts/vidhar/prometheus/default.nix
+++ b/hosts/vidhar/prometheus/default.nix
@@ -1,4 +1,4 @@
1{ config, lib, pkgs, ... }: 1{ config, lib, pkgs, utils, ... }:
2 2
3with lib; 3with lib;
4 4
@@ -395,10 +395,13 @@ in {
395 systemd.services."prometheus-systemd-exporter" = let 395 systemd.services."prometheus-systemd-exporter" = let
396 cfg = config.services.prometheus.exporters.systemd; 396 cfg = config.services.prometheus.exporters.systemd;
397 in { 397 in {
398 serviceConfig.ExecStart = mkForce '' 398 serviceConfig = {
399 ${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter \ 399 ExecStart = mkForce "${pkgs.prometheus-systemd-exporter}/bin/systemd_exporter ${utils.escapeSystemdExecArgs [
400 --web.listen-address ${cfg.listenAddress}:${toString cfg.port} ${concatStringsSep " " cfg.extraFlags} 400 "--web.listen-address" "${cfg.listenAddress}:${toString cfg.port}"
401 ''; 401 ] ++ cfg.extraFlags}";
402 ReadWritePaths = ["/run/dbus/system_bus_socket"];
403 BindReadOnlyPaths = ["/proc"];
404 };
402 }; 405 };
403 406
404 services.nginx = { 407 services.nginx = {