import all the keys

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-08-24 00:48:40 -04:00
parent 12555ebc3a
commit 164e86468d
No known key found for this signature in database
GPG Key ID: 1316487BA407ECAF

View File

@ -1,9 +1,12 @@
{ lib, ... }: { lib, pkgs, ... }:
{ {
boot.zfs.requestEncryptionCredentials = lib.mkForce false; boot = {
zfs.requestEncryptionCredentials = lib.mkForce false;
boot.initrd = { postBootCommands = ''
${pkgs.zfs}/bin/zfs load-key -a
'';
initrd = {
services.lvm.enable = true; services.lvm.enable = true;
luks.devices = { luks.devices = {
"nixos-pv" = { "nixos-pv" = {
@ -33,6 +36,7 @@
load_zfs_nix load_zfs_nix
''; '';
}; };
};
fileSystems = { fileSystems = {
"/".options = [ "/".options = [