anchor.diff:            will be scrubbed.
           '';
         };
  +    };
  +
  +    services.zfs.expandOnBoot = mkOption {
  +      type = types.either (types.enum [ "disabled" "all" ]) (types.listOf types.str);
  +      default = "disabled";
  +      example = [ "tank" "dozer" ];
  +      description = ''
  +        After importing, expand each device in the specified pools.
  +
  +        Set the value to the plain string "all" to expand all pools on boot:
  +
  +            services.zfs.expandOnBoot = "all";
  +
  +        or set the value to a list of pools to expand the disks of specific pools:
  +
  +            services.zfs.expandOnBoot = [ "tank" "dozer" ];
  +      '';
       };
   
       services.zfs.zed = {
  
positive.code:               ${cfgZfs.package}/sbin/zfs set nixos:shutdown-time="$(date)" "${pool}"
              '';
            };
          createZfsService = serv:
            nameValuePair serv {
              after = [ "systemd-modules-load.service" ];
  
negative.code: let
  
    cfgZfs = config.boot.zfs;
    cfgExpandOnBoot = config.services.zfs.expandOnBoot;
    cfgSnapshots = config.services.zfs.autoSnapshot;
    cfgSnapFlags = cfgSnapshots.flags;
    cfgScrub = config.services.zfs.autoScrub;
  