nixpkgs/nixos/modules
Jakub Sokołowski c70f047315
nixos/zfs: assert no force import with hibernation
According to a ZFS issue about hibernation causing data corruption:
https://github.com/openzfs/zfs/issues/12842

The way this happens is if the system force imports a pool that was
suspended during hibernation. I've had this happen twice on NixOS and
I'd like to avoid having this happen again, to me or others.

To do this I've added an assertion that makes sure you can't have
`forceImportRoot` or `forceImportAll` enabled with `allowHibernation`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2022-12-17 13:11:23 +01:00
..
config Merge master into staging-next 2022-12-16 00:02:17 +00:00
hardware treewide: use mkEnableOption in nixos modules 2022-11-10 09:30:00 +01:00
i18n/input-method nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
installer nixos/installer/netboot-minimal: add missing lib 2022-12-12 09:54:17 +08:00
misc nixos/doc: render option values using lib.generators.toPretty 2022-12-08 17:52:52 +01:00
profiles nixos/modules/profiles/base.nix: add nvme-cli 2022-12-13 15:35:05 +00:00
programs Merge pull request #200856 from aacebedo/aacebedo/streamdeck-ui_package_option 2022-12-17 00:46:28 +01:00
security nixos/pam: allow backing the motd with a file 2022-12-15 11:54:26 +01:00
services nixos/katriawm: add module 2022-12-17 00:13:39 -03:00
system Merge pull request #172237 from DeterminateSystems/bootspec-rfc 2022-12-17 08:35:53 +00:00
tasks nixos/zfs: assert no force import with hibernation 2022-12-17 13:11:23 +01:00
testing nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
virtualisation Merge pull request #204480 from ncfavier/hv-kvp 2022-12-14 12:03:20 +01:00
module-list.nix Merge pull request #172237 from DeterminateSystems/bootspec-rfc 2022-12-17 08:35:53 +00:00
rename.nix dd-agent: remove 2022-09-14 14:11:14 +02:00