···876876 </listitem>
877877 <listitem>
878878 <para>
879879+ ZFS module will not allow hibernation by default, this is a
880880+ safety measure to prevent data loss cases like the ones
881881+ described at
882882+ <link xlink:href="https://github.com/openzfs/zfs/issues/260">OpenZFS/260</link>
883883+ and
884884+ <link xlink:href="https://github.com/openzfs/zfs/issues/12842">OpenZFS/12842</link>.
885885+ Use the <literal>boot.zfs.allowHibernation</literal> option to
886886+ configure this behaviour.
887887+ </para>
888888+ </listitem>
889889+ <listitem>
890890+ <para>
879891 The Redis module now disables RDB persistence when
880892 <literal>services.redis.servers.<name>.save = []</literal>
881893 instead of using the Redis default.
+2
nixos/doc/manual/release-notes/rl-2211.section.md
···273273274274- A new module was added for the Saleae Logic device family, providing the options `hardware.saleae-logic.enable` and `hardware.saleae-logic.package`.
275275276276+- ZFS module will not allow hibernation by default, this is a safety measure to prevent data loss cases like the ones described at [OpenZFS/260](https://github.com/openzfs/zfs/issues/260) and [OpenZFS/12842](https://github.com/openzfs/zfs/issues/12842). Use the `boot.zfs.allowHibernation` option to configure this behaviour.
277277+276278- The Redis module now disables RDB persistence when `services.redis.servers.<name>.save = []` instead of using the Redis default.
277279278280- Neo4j was updated from version 3 to version 4. See this [migration guide](https://neo4j.com/docs/upgrade-migration-guide/current/) on how to migrate your Neo4j instance.
+13
nixos/modules/tasks/filesystems/zfs.nix
···226226 '';
227227 };
228228229229+ allowHibernation = mkOption {
230230+ type = types.bool;
231231+ default = false;
232232+ description = lib.mdDoc ''
233233+ Allow hibernation support, this may be a unsafe option depending on your
234234+ setup. Make sure to NOT use Swap on ZFS.
235235+ '';
236236+ };
237237+229238 extraPools = mkOption {
230239 type = types.listOf types.str;
231240 default = [];
···498507499508 boot = {
500509 kernelModules = [ "zfs" ];
510510+ # https://github.com/openzfs/zfs/issues/260
511511+ # https://github.com/openzfs/zfs/issues/12842
512512+ # https://github.com/NixOS/nixpkgs/issues/106093
513513+ kernelParams = lib.optionals (!config.boot.zfs.allowHibernation) [ "nohibernate" ];
501514502515 extraModulePackages = [
503516 (if config.boot.zfs.enableUnstable then