2024-12-04 16:09:14 -05:00
|
|
|
{ user, lib, pkgs, ... }:
|
2024-12-03 16:40:01 -05:00
|
|
|
{
|
2024-12-04 16:09:14 -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" ];
|
2024-12-04 16:09:14 -05:00
|
|
|
|
|
|
|
# secure boot configuration
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
sbctl
|
|
|
|
];
|
2024-12-03 16:40:01 -05:00
|
|
|
}
|