enable secure boot wit Lanzaboote
This commit is contained in:
parent
c1d12186f2
commit
072fc2b6af
3 changed files with 263 additions and 6 deletions
|
@ -39,10 +39,23 @@ in
|
|||
};
|
||||
boot.kernel.sysctl."vm.swappiness" = 9;
|
||||
|
||||
# Use the systemd-boot EFI boot loader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
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 = "/etc/secureboot";
|
||||
};
|
||||
|
||||
# make the boot look good
|
||||
boot.plymouth.enable = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue