summaryrefslogtreecommitdiff
path: root/archetypes/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'archetypes/profiles')
-rw-r--r--archetypes/profiles/zfs/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/archetypes/profiles/zfs/default.nix b/archetypes/profiles/zfs/default.nix
index a3ca2e1..4841231 100644
--- a/archetypes/profiles/zfs/default.nix
+++ b/archetypes/profiles/zfs/default.nix
@@ -16,6 +16,13 @@
# Make docker work with zfs
virtualisation.docker.storageDriver = mkZfs "zfs";
+
+ # Ensure root pools are safely imported (default after 26.11)
+ # NOTE: If NixOS fails to boot because it cannot import the root pool,
+ # you should boot with the zfs_force=1 option as a kernel parameter
+ # (e.g. by manually editing the kernel params via your bootloader). You
+ # should only need to do this after unclean shutdowns.
+ boot.zfs.forceImportRoot = mkZfs false;
};
homeConfig = {};