nix/nixos/common/modules/secureboot.nix

14 lines
345 B
Nix
Raw Normal View History

2023-07-12 16:43:21 +02:00
{ lib, config, pkgs, ...}: {
2023-09-21 15:22:59 +02:00
2023-09-22 11:50:46 +02:00
imports = [ ./boot.nix ];
2023-11-26 12:29:58 +01:00
2023-09-21 15:22:59 +02:00
# SecureBoot
boot.loader.systemd-boot.enable = lib.mkForce false;
boot.lanzaboote.enable = true;
boot.lanzaboote.pkiBundle = "/etc/secureboot";
2023-09-21 14:51:42 +02:00
2023-09-21 15:22:59 +02:00
# Bootloader
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.cleanOnBoot = true;
boot.initrd.systemd.enable = true;
}