From 13970b53ad509cf1ee20e17e30ecc1d30115e136 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Mon, 6 Jan 2025 19:21:20 -0500 Subject: [PATCH] Only decrypt the nix zfs dataset. --- nix/configuration/hosts/odo/disk-config.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/configuration/hosts/odo/disk-config.nix b/nix/configuration/hosts/odo/disk-config.nix index e13af29..7df6f5e 100644 --- a/nix/configuration/hosts/odo/disk-config.nix +++ b/nix/configuration/hosts/odo/disk-config.nix @@ -118,4 +118,7 @@ lib.mkIf (!config.me.buildingIso) { fileSystems."/persist".neededForBoot = true; fileSystems."/state".neededForBoot = true; fileSystems."/home".neededForBoot = true; + + # Only attempt to decrypt the main pool. Otherwise it attempts to decrypt pools that aren't even used. + boot.zfs.requestEncryptionCredentials = [ "zroot/linux/nix" ]; }