secure boot
This commit is contained in:
parent
999f66dca1
commit
3ad6d63395
3 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
|||
withNiri = true;
|
||||
|
||||
withGames = true;
|
||||
withSecureBoot = true;
|
||||
|
||||
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
|
||||
|
||||
|
|
|
@ -6,7 +6,9 @@ in {
|
|||
./containers
|
||||
./games
|
||||
./home
|
||||
./impermanence
|
||||
./niri
|
||||
./secureboot
|
||||
./user
|
||||
./utils
|
||||
./vm
|
||||
|
|
12
modules/secureboot/default.nix
Normal file
12
modules/secureboot/default.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue