{ lib, pkgs, inputs, ... }: { imports = [ inputs.lanzaboote.nixosModules.lanzaboote ]; environment.systemPackages = [ # manual lanzaboote maintenance (NOTE: i have not actually used this since ~2022) pkgs.sbctl # TODO: is this actually required for using `tpm2-device=auto` to unlock LUKS volumes in initrd? probably pkgs.tpm2-tss ]; boot = { initrd.systemd.enable = true; # for unlocking luks root with tpm2 kernelPackages = pkgs.linuxPackages_latest; kernelParams = [ "amd_pstate=active" ]; loader.systemd-boot.enable = lib.mkForce false; # lanzaboote replaces this lanzaboote = { enable = true; pkiBundle = "/etc/secureboot"; settings = { console-mode = "auto"; editor = false; timeout = 0; }; }; supportedFilesystems = [ "ntfs" ]; # for game drive }; }