anchor.diff:        };
       };
   
  +    services.zfs.trim = {
  +      enable = mkEnableOption "Enables periodic TRIM on all ZFS pools.";
  +
  +      interval = mkOption {
  +        default = "weekly";
  +        type = types.str;
  +        example = "daily";
  +        description = ''
  +          How often we run trim. For most desktop and server systems
  +          a sufficient trimming frequency is once a week.
  +
  +          The format is described in
  +          <citerefentry><refentrytitle>systemd.time</refentrytitle>
  +          <manvolnum>7</manvolnum></citerefentry>.
  +        '';
  +      };
  +    };
  +
       services.zfs.autoScrub = {
  -      enable = mkOption {
  -        default = false;
  -        type = types.bool;
  -        description = ''
  -          Enables periodic scrubbing of ZFS pools.
  -        '';
  -      };
  +      enable = mkEnableOption "Enables periodic scrubbing of ZFS pools.";
   
         interval = mkOption {
           default = "Sun, 02:00";
  
positive.code:         };
        };
      })
    ];
  }
  
negative.code:   cfgSnapshots = config.services.zfs.autoSnapshot;
    cfgSnapFlags = cfgSnapshots.flags;
    cfgScrub = config.services.zfs.autoScrub;
    cfgTrim = config.services.zfs.trim;
  
    inInitrd = any (fs: fs == "zfs") config.boot.initrd.supportedFilesystems;
    inSystem = any (fs: fs == "zfs") config.boot.supportedFilesystems;
  