nixfiles/hosts/koi/partials/fde.nix
2024-01-08 07:51:19 +03:00

25 lines
584 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
sbctl
cryptsetup
sbsigntool
];
security.tpm2 = {
enable = true;
pkcs11.enable = true;
};
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.secureboot = {
enable = true;
# generated with sbctl
signingKeyPath = "/etc/secureboot/keys/db/db.key";
signingCertPath = "/etc/secureboot/keys/db/db.pem";
};
boot.loader.systemd-boot.configurationLimit = 15;
boot.initrd.systemd.enable = true;
boot.initrd.luks.devices.root.crypttabExtraOpts = [ "tpm2-device=auto" ];
}