summaryrefslogtreecommitdiff
path: root/sys/boot/tpm.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/tpm.nix')
-rw-r--r--sys/boot/tpm.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/tpm.nix b/sys/boot/tpm.nix
index ecc115b..da6f73a 100644
--- a/sys/boot/tpm.nix
+++ b/sys/boot/tpm.nix
@@ -93,8 +93,8 @@ in {
config = mkIf cfg.enable {
assertions = [
{
- assertion = config.local.boot.efi.enable;
- message = "TPM2 requires EFI";
+ assertion = cfg.initrd.enable -> config.local.boot.efi.enable;
+ message = "TPM2 in initrd requires EFI";
}
{
assertion = cfg.initrd.enable -> cfg.enable;