nixfiles/hosts/koi/partials/fde.nix

24 lines
435 B
Nix
Raw Normal View History

{ pkgs, lib, ... }:
2024-01-08 07:49:51 +03:00
{
environment.systemPackages = with pkgs; [
sbctl
cryptsetup
sbsigntool
];
security.tpm2 = {
enable = true;
pkcs11.enable = true;
};
boot.loader.systemd-boot.enable = lib.mkForce false;
2024-01-08 07:49:51 +03:00
boot.initrd.systemd.enable = true;
boot.initrd.luks.devices.root.crypttabExtraOpts = [ "tpm2-device=auto" ];
boot.lanzaboote = {
enable = true;
pkiBundle = "/var/lib/sbctl";
};
2024-01-08 07:49:51 +03:00
}