nixos/systemd-stage-1: Don't enable TPM2 on scripted stage 1 (#346547)

authored by Will Fancher and committed by GitHub 9f8eb445 74ba8b7e

+1 -1
+1 -1
nixos/modules/system/boot/systemd/tpm2.nix
··· 58 58 let 59 59 cfg = config.boot.initrd.systemd; 60 60 in 61 - lib.mkIf cfg.tpm2.enable { 61 + lib.mkIf (cfg.enable && cfg.tpm2.enable) { 62 62 boot.initrd.systemd.additionalUpstreamUnits = [ 63 63 "tpm2.target" 64 64 "systemd-tpm2-setup-early.service"