anchor.diff:          zfsSupport = true;
         };
   
  -      environment.etc."zfs/zed.d".source = "${zfsPkg}/etc/zfs/zed.d/*";
  -
  -      system.fsPackages = [ zfsPkg ];                  # XXX: needed? zfs doesn't have (need) a fsck
  -      environment.systemPackages = [ zfsPkg ];
  -      services.udev.packages = [ zfsPkg ];             # to hook zvol naming, etc.
  -      systemd.packages = [ zfsPkg ];
  +      environment.etc."zfs/zed.d".source = "${zfsUserPkg}/etc/zfs/zed.d/*";
  +
  +      system.fsPackages = [ zfsUserPkg ];                  # XXX: needed? zfs doesn't have (need) a fsck
  +      environment.systemPackages = [ zfsUserPkg ];
  +      services.udev.packages = [ zfsUserPkg ];             # to hook zvol naming, etc.
  +      systemd.packages = [ zfsUserPkg ];
   
         systemd.services = let
           getPoolFilesystems = pool:
  
positive.code: 
        boot = {
          kernelModules = [ "spl" "zfs" ] ;
          extraModulePackages = [ splPkg zfsPkg ];
        };
  
        boot.initrd = mkIf inInitrd {
          kernelModules = [ "spl" "zfs" ];
          extraUtilsCommands =
            ''
              cp -v ${zfsPkg}/sbin/zfs $out/bin
              cp -v ${zfsPkg}/sbin/zdb $out/bin
              cp -v ${zfsPkg}/sbin/zpool $out/bin
              cp -pdv ${zfsPkg}/lib/lib*.so* $out/lib
              cp -pdv ${pkgs.zlib}/lib/lib*.so* $out/lib
            '';
          postDeviceCommands = concatStringsSep "\n" ([''
  
negative.code:               RemainAfterExit = true;
              };
              script = ''
                zpool_cmd="${zfsUserPkg}/sbin/zpool"
                ("$zpool_cmd" list "${pool}" >/dev/null) || "$zpool_cmd" import -N ${optionalString cfgZfs.forceImportAll "-f"} "${pool}"
              '';
            };
  