nix/nixos/common/modules/secureboot.nix

14 lines
345 B
Nix
Raw Normal View History

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