setup secure boot

This commit is contained in:
cy 2025-01-01 02:07:32 -05:00
parent 1f9fd276b0
commit ef7a2a0841
3 changed files with 223 additions and 2 deletions

View file

@ -2,6 +2,7 @@
config,
pkgs,
inputs,
lib,
...
}:
{
@ -42,7 +43,8 @@
boot = {
loader = {
systemd-boot.enable = true;
# lanzaboote replaces systemd-boot
systemd-boot.enable = lib.mkForce false;
efi.canTouchEfiVariables = true;
};
tmp.cleanOnBoot = true;
@ -58,6 +60,10 @@
extraModprobeConfig = ''
blacklist rtw88_8821ce
'';
lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
};
networking = {
@ -163,6 +169,7 @@
restic
haskell-language-server
ghc
sbctl # secure boot
];
environment.sessionVariables = {