homelab config (working lenovo + lanzaboote for secure boot)

This commit is contained in:
boyreau 2026-09-20 21:21:07 +02:00
commit 512a4b1114
13 changed files with 104 additions and 9510 deletions

View 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
];
}