mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
fixed sops not decrypting at boot
This commit is contained in:
parent
ca82a01644
commit
04f7e566b4
2 changed files with 4 additions and 8 deletions
|
|
@ -6,13 +6,10 @@ _: {lib, ...}: {
|
|||
"L+ /etc/nixos - - - - /persist/nixos"
|
||||
];
|
||||
boot.initrd.postDeviceCommands = lib.mkAfter ''
|
||||
zfs snapshot destroy rpool/root@prev
|
||||
zfs snapshot destroy rpool/var@prev
|
||||
|
||||
zfs snapshot create rpool/root@prev
|
||||
zfs snapshot create rpool/var@prev
|
||||
|
||||
zfs rollback -r rpool/root@empty
|
||||
zfs rollback -r rpool/var@empty
|
||||
'';
|
||||
#make sure the sopskey is found
|
||||
sops.age.sshKeyPaths = lib.mkForce ["/persist/ssh/ssh_host_ed25519_key"];
|
||||
fileSystems."/persist".neededForBoot = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue