[fanny] set neededForBoot flags

This commit is contained in:
2024-12-20 23:47:25 +01:00
parent e7710d63a3
commit fedf849499
2 changed files with 10 additions and 2 deletions

View File

@@ -93,7 +93,7 @@
};
# use this to read the key during boot
postCreateHook = ''
zfs set keylocation="prompt" "zroot/$name";
zfs set keylocation="prompt" zroot/encrypted;
'';
};
"encrypted/root" = {
@@ -136,7 +136,7 @@
# use this to read the key during boot
postCreateHook = ''
zfs set keylocation="prompt" "zroot/$name";
zfs set keylocation="prompt" storage/encrypted;
'';
};
"encrypted/data" = {
@@ -147,4 +147,11 @@
};
};
};
fileSystems."/".neededForBoot = true;
fileSystems."/boot".neededForBoot = true;
fileSystems."/var".neededForBoot = true;
fileSystems."/etc".neededForBoot = true;
fileSystems."/home".neededForBoot = true;
fileSystems."/nix".neededForBoot = true;
}