homelab config (working lenovo + lanzaboote for secure boot)
This commit is contained in:
parent
176b620e43
commit
512a4b1114
13 changed files with 104 additions and 9510 deletions
27
machines/homelab/bootloader.nix
Normal file
27
machines/homelab/bootloader.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
sources = import ../../npins;
|
||||
lanzaboote = import sources.lanzaboote { inherit pkgs; };
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
lanzaboote.nixosModules.lanzaboote
|
||||
];
|
||||
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.initrd.systemd.enable = lib.mkForce false;
|
||||
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
|
||||
environment.systemPackages = [
|
||||
pkgs.sbctl
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue