diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 795879c6764c..0fc5bb555aa3 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -713,6 +713,8 @@ in Type = "oneshot"; RemainAfterExit = true; }; + + path = lib.optionals (cfgExpandOnBoot == "all") [ cfgZfs.package ]; script = '' for pool in ${poolListProvider}; do