diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-07-26 10:54:14 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-07-26 18:59:49 -0600 |
| commit | 81322ec6ffe1f971b45561d70faf8749342607a4 (patch) | |
| tree | bea32c85c74e7b4fb6e7abe38903df227ef0e60e /sys/boot | |
| parent | c2208494ae9a2dedc3bc7d88c2fa7c4f4e766814 (diff) | |
sys/boot/tpm: support different TPM drivers (tpm_tis vs tpm_crb)
Diffstat (limited to '')
| -rw-r--r-- | sys/boot/tpm.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/boot/tpm.nix b/sys/boot/tpm.nix index 1e446ab..4093e47 100644 --- a/sys/boot/tpm.nix +++ b/sys/boot/tpm.nix @@ -44,6 +44,10 @@ in options.local.boot.tpm = { enable = mkEnableOption "Trusted Platform Module 2.0"; + driver = mkOption { + type = types.enum [ "tis" "crb" ]; + }; + initrd = { enable = mkEnableOption "TPM2 in initrd"; @@ -74,7 +78,7 @@ in ''; kernelModules = [ - "tpm_tis" + "tpm_${cfg.driver}" ]; }; |
