fix: zfs noauto encrypted pool still requesting passphrase on reboot

This commit is contained in:
Noah Masur 2024-03-04 13:01:07 +00:00
parent 47be4291a3
commit b39cda6b84

View File

@ -56,8 +56,15 @@ inputs.nixpkgs.lib.nixosSystem {
devices = (import ../../disks/root.nix { disk = "/dev/nvme0n1"; }); devices = (import ../../disks/root.nix { disk = "/dev/nvme0n1"; });
}; };
# Automatically load the ZFS pool on boot boot.zfs = {
boot.zfs.extraPools = [ "tank" ]; # Automatically load the ZFS pool on boot
extraPools = [ "tank" ];
# Only try to decrypt datasets with keyfiles
requestEncryptionCredentials =
[ "tank/archive" "tank/generic" "tank/nextcloud" ];
# If password is requested and fails, continue to boot eventually
passwordTimeout = 300;
};
# Theming # Theming