flake/nixos/tpm.nix

18 lines
353 B
Nix
Raw Normal View History

{ user, lib, pkgs, ... }:
2024-12-03 16:40:01 -05:00
{
environment.variables = {
TPM2_PKCS11_TCTI = lib.mkDefault "tabrmd:";
};
2024-12-03 16:40:01 -05:00
security.tpm2 = {
enable = true;
pkcs11.enable = true;
tctiEnvironment.enable = true;
};
users.users.${user}.extraGroups = [ "tss" ];
# secure boot configuration
environment.systemPackages = with pkgs; [
sbctl
];
2024-12-03 16:40:01 -05:00
}