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;
|
withNiri = true;
|
||||||
|
|
||||||
withGames = true;
|
withGames = true;
|
||||||
|
withSecureBoot = true;
|
||||||
|
|
||||||
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
|
hwmonPath = "/sys/class/hwmon/hwmon1/temp1_input";
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ in {
|
||||||
./containers
|
./containers
|
||||||
./games
|
./games
|
||||||
./home
|
./home
|
||||||
|
./impermanence
|
||||||
./niri
|
./niri
|
||||||
|
./secureboot
|
||||||
./user
|
./user
|
||||||
./utils
|
./utils
|
||||||
./vm
|
./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