secure boot

This commit is contained in:
twoneis 2024-07-23 01:30:58 +02:00
parent 999f66dca1
commit 3ad6d63395
3 changed files with 15 additions and 0 deletions

View file

@ -4,6 +4,7 @@
withNiri = true;
withGames = true;
withSecureBoot = true;
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";

View file

@ -6,7 +6,9 @@ in {
./containers
./games
./home
./impermanence
./niri
./secureboot
./user
./utils
./vm

View file

@ -0,0 +1,12 @@
{ lib, config, pkgs, ... }: let
inherit (lib) mkIf mkForce;
in mkIf config.withSecureBoot {
environment.systemPackages = [ pkgs.sbctl ];
boot.loader.systemd-boot.enable = mkForce false;
boot.lanzaboote = {
enable = true;
pkiBundle = "/etc/secureboot";
};
}