Secure boot, tmp unlock for framework12
This commit is contained in:
parent
293eb7b5cd
commit
99f43f6646
8 changed files with 287 additions and 76 deletions
27
nixos/hosts/kylekrein-framework12/secure-boot.nix
Normal file
27
nixos/hosts/kylekrein-framework12/secure-boot.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
hwconfig,
|
||||
...
|
||||
}: {
|
||||
boot = {
|
||||
initrd.systemd.enable = true;
|
||||
|
||||
loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle =
|
||||
#if hwconfig.useImpermanence
|
||||
#then "/persist/system/var/lib/sbctl"
|
||||
# else
|
||||
"/var/lib/sbctl";
|
||||
};
|
||||
};
|
||||
environment.systemPackages = [
|
||||
# For debugging and troubleshooting Secure Boot.
|
||||
pkgs.sbctl
|
||||
# For tpm auto unlock
|
||||
pkgs.tpm2-tss
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue