Only decrypt the nix zfs dataset.

This commit is contained in:
Tom Alexander 2025-01-06 19:21:20 -05:00
parent 13d7319a0f
commit 13970b53ad
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -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" ];
}