idiosyn/nixos/module/physical.nix

20 lines
401 B
Nix
Raw Normal View History

2024-08-18 13:47:18 +02:00
{ self, lanzaboote, ... }: { config, lib, pkgs, ... }: {
imports = [
lanzaboote.nixosModules.lanzaboote
] ++ (with self.nixosModules; [
nitrokey-random
]);
boot = {
loader.efi.canTouchEfiVariables = true;
lanzaboote = {
enable = true;
pkiBundle = lib.mkDefault "/etc/keys/secureboot";
};
};
security.tpm2.enable = true;
services.fwupd.enable = true;
}