secureboot: generalise, enable for framenix
This commit is contained in:
parent
2c74301ec4
commit
fbc3b8f952
5 changed files with 34 additions and 26 deletions
|
|
@ -19,6 +19,7 @@ in
|
|||
./audio-sharing.nix
|
||||
./angrr.nix
|
||||
./sops.nix
|
||||
./secureboot.nix
|
||||
];
|
||||
|
||||
services.davfs2.enable = true;
|
||||
|
|
|
|||
25
common/secureboot.nix
Normal file
25
common/secureboot.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
options.schmittlauch.secureboot.enable = lib.mkEnableOption "Enable lanzaboote secure boot, make sure keys and firmware are setup correctly.";
|
||||
config = lib.mkIf config.schmittlauch.secureboot.enable {
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
# UEFI secure boot
|
||||
environment.systemPackages = [ pkgs.sbctl ];
|
||||
# Lanzaboote currently replaces the systemd-boot module.
|
||||
# This setting is usually set to true in configuration.nix
|
||||
# generated at installation time. So we force it to false
|
||||
# for now.
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = "/var/lib/sbctl";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue