nixos/cadvisor: add zfs to path when zfs enabled

fixes https://github.com/NixOS/nixpkgs/issues/105139
This commit is contained in:
Artturin 2021-11-17 20:47:44 +02:00
parent 19b22191f7
commit 0894568aee

View File

@ -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;