feat: setup secure boot with lazanboote.
This commit is contained in:
parent
426abb144a
commit
3b5c369c76
2 changed files with 23 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
inputs,
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
|
|
@ -11,9 +12,20 @@
|
|||
inputs.home-manager.nixosModules.home-manager
|
||||
];
|
||||
|
||||
# For tpm unlock
|
||||
boot.initrd.systemd.enable = true;
|
||||
|
||||
# To explicitly disable systemd-boot, lanzaboote takes care of that.
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
autoEnrollKeys = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# Enable aarch64 emulation
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue