Description
I have two drives. Both of which are luksencrypted. One of them contains my root filesystem and the other contains my /home
. However when I boot I always get asked for the home drives password first. Even after I added a keyFile using settings.keyFile
on the partition configuration it tries to find the keyfile before it even attempts to unlock the root partition. Is there some way to not have nix attempt to unlock the home partition during stage 1 but rather in stage 2 after sops-nix (which I use for the keyfile) is initialized? I know on archlinux it was possible to use the /etc/crypttab file but I don't know how to populate that and I also don't know how to keep nix from trying to unlock the home drive during stage 1.
If anyone got an idea how to fix this please tell me.
This is my current disko config: https://github.com/ItsLiyua/dots/blob/3e3ff63e5981a12a9eaa49e492835e3a6b7dd0da/hosts/resolute/modules/disko.nix
Edit: I'm gonna revert it to a working state for the time being. You'll have to use the perma link to find the previous configuration I tried.