From 3e90d5a2bc26bbaf612514cb3c35891a8a110e34 Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Fri, 4 Oct 2024 19:50:32 -0400 Subject: [PATCH] nixos/systemd-stage-1: Don't enable TPM2 on scripted stage 1 --- nixos/modules/system/boot/systemd/tpm2.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/tpm2.nix b/nixos/modules/system/boot/systemd/tpm2.nix index 0870e35212f5..6b6c9fb23f24 100644 --- a/nixos/modules/system/boot/systemd/tpm2.nix +++ b/nixos/modules/system/boot/systemd/tpm2.nix @@ -58,7 +58,7 @@ let cfg = config.boot.initrd.systemd; in - lib.mkIf cfg.tpm2.enable { + lib.mkIf (cfg.enable && cfg.tpm2.enable) { boot.initrd.systemd.additionalUpstreamUnits = [ "tpm2.target" "systemd-tpm2-setup-early.service"