Enable secure boot via lanzaboote on installer ISO
This commit is contained in:
parent
906a668987
commit
4d0aef1c86
2 changed files with 21 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
|||
(inputs.nixpkgs + "/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix")
|
||||
inputs.lix-module.nixosModules.lixFromNixpkgs
|
||||
../modules/system/base.nix
|
||||
../modules/system/secure-boot.nix
|
||||
../modules/users/admin.nix
|
||||
];
|
||||
|
||||
|
|
|
|||
20
modules/system/secure-boot.nix
Normal file
20
modules/system/secure-boot.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
# Use Lanzaboote to build signed Unified Kernel Images and shim-compatible boot chain.
|
||||
boot.lanzaboote = {
|
||||
enable = true;
|
||||
pkiBundle = {
|
||||
name = "nanuqsaurus";
|
||||
description = "Secure Boot keys for nanuqsaurus installer ISO";
|
||||
};
|
||||
};
|
||||
|
||||
# Ensure systemd-boot is not pulled in by other modules.
|
||||
boot.loader.systemd-boot.enable = lib.mkForce false;
|
||||
|
||||
boot.loader.efi = {
|
||||
canTouchEfiVariables = true;
|
||||
efiSysMountPoint = "/boot";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue