Setup secure boot on x86 linux using lanzaboote

This commit is contained in:
Martin Larsson 2026-01-15 00:08:54 +01:00
parent fe2b2532d7
commit ac2d98a55b
3 changed files with 142 additions and 3 deletions

View file

@ -1,4 +1,4 @@
{ ... }:
{ pkgs, lib, ... }:
{
imports = [
./hardware-configuration.nix
@ -7,13 +7,23 @@
boot = {
loader = {
systemd-boot.enable = true;
systemd-boot.enable = lib.mkForce false; # lanzaboote replaces systemd-boot module
efi.canTouchEfiVariables = true;
};
lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
};
networking.hostName = "walnut-nixos";
environment = {
systemPackages = with pkgs; [
sbctl
];
};
programs = {
sway.extraOptions = [
"--unsupported-gpu"