anchor.diff:          zfsSupport = true;
         };
   
  -      environment.etc."zfs/zed.d".source = "${packages.zfsUser}/etc/zfs/zed.d/*";
  +      environment.etc."zfs/zed.d".source = "${packages.zfsUser}/etc/zfs/zed.d/";
   
         system.fsPackages = [ packages.zfsUser ]; # XXX: needed? zfs doesn't have (need) a fsck
         environment.systemPackages = [ packages.zfsUser ]
  
positive.code:         type = types.int;
          description = ''
            Number of monthly auto-snapshots that you wish to keep.
          '';
        };
      };
  
negative.code:                               };
                              }) snapshotNames);
      })
  
      (mkIf enableAutoScrub {
        systemd.services.zfs-scrub = {
          description = "ZFS pools scrubbing";
          after = [ "zfs-import.target" ];
          serviceConfig = {
            Type = "oneshot";
          };
          script = ''
            ${packages.zfsUser}/bin/zpool scrub ${
              if cfgScrub.pools != [] then
                (concatStringsSep " " cfgScrub.pools)
              else
                "$(${packages.zfsUser}/bin/zpool list -H -o name)"
              }
          '';
        };
  
        systemd.timers.zfs-scrub = {
          wantedBy = [ "timers.target" ];
          timerConfig = {
            OnCalendar = cfgScrub.interval;
            Persistent = "yes";
          };
        };
      })
    ];
  }
  