From 0894568aee97eeade591369772046c0d519f95dc Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 17 Nov 2021 20:47:44 +0200 Subject: [PATCH] nixos/cadvisor: add zfs to path when zfs enabled fixes https://github.com/NixOS/nixpkgs/issues/105139 --- nixos/modules/services/monitoring/cadvisor.nix | 2 ++ 1 file changed, 2 insertions(+) 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;