diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix index 795879c6764c..dcd83094b093 100644 --- a/nixos/modules/tasks/filesystems/zfs.nix +++ b/nixos/modules/tasks/filesystems/zfs.nix @@ -714,6 +714,8 @@ in RemainAfterExit = true; }; + path = lib.optionals (cfgExpandOnBoot == "all") [ cfgZfs.package ]; + script = '' for pool in ${poolListProvider}; do systemctl start --no-block "zpool-expand@$pool"