diff options
author | Artturin <Artturin@artturin.com> | 2021-11-17 20:47:44 +0200 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2021-11-17 20:47:44 +0200 |
commit | 0894568aee97eeade591369772046c0d519f95dc (patch) | |
tree | c85e865dec7a8734fea0463cbd752d5880ddc183 /nixos/modules/services/monitoring | |
parent | 19b22191f7de3d172562f2fdcf1e9be21df23fef (diff) | |
download | nixlib-0894568aee97eeade591369772046c0d519f95dc.tar nixlib-0894568aee97eeade591369772046c0d519f95dc.tar.gz nixlib-0894568aee97eeade591369772046c0d519f95dc.tar.bz2 nixlib-0894568aee97eeade591369772046c0d519f95dc.tar.lz nixlib-0894568aee97eeade591369772046c0d519f95dc.tar.xz nixlib-0894568aee97eeade591369772046c0d519f95dc.tar.zst nixlib-0894568aee97eeade591369772046c0d519f95dc.zip |
nixos/cadvisor: add zfs to path when zfs enabled
fixes https://github.com/NixOS/nixpkgs/issues/105139
Diffstat (limited to 'nixos/modules/services/monitoring')
-rw-r--r-- | nixos/modules/services/monitoring/cadvisor.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/monitoring/cadvisor.nix b/nixos/modules/services/monitoring/cadvisor.nix index da051dbe4655..dfbf07efcaea 100644 --- a/nixos/modules/services/monitoring/cadvisor.nix +++ b/nixos/modules/services/monitoring/cadvisor.nix @@ -111,6 +111,8 @@ in { wantedBy = [ "multi-user.target" ]; after = [ "network.target" "docker.service" "influxdb.service" ]; + path = optionals config.boot.zfs.enabled [ pkgs.zfs ]; + postStart = mkBefore '' until ${pkgs.curl.bin}/bin/curl -s -o /dev/null 'http://${cfg.listenAddress}:${toString cfg.port}/containers/'; do sleep 1; |