anchor.diff:          default = if config.boot.zfs.enableUnstable then pkgs.zfsUnstable else pkgs.zfs;
           description = "Configured ZFS userland tools package.";
         };
  +
  +      enabled = mkOption {
  +        readOnly = true;
  +        type = types.bool;
  +        default = inInitrd || inSystem;
  +        description = "True if ZFS filesystem support is enabled";
  +      };
  +
         enableUnstable = mkOption {
           type = types.bool;
           default = false;
  
positive.code:                             }) snapshotNames);
      })
  
      (mkIf (enableZfs && cfgScrub.enable) {
        systemd.services.zfs-scrub = {
          description = "ZFS pools scrubbing";
          after = [ "zfs-import.target" ];
  
negative.code:       };
      })
  
      (mkIf (cfgZfs.enabled && cfgTrim.enable) {
        systemd.services.zpool-trim = {
          description = "ZFS pools trim";
          after = [ "zfs-import.target" ];
  