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

This commit is contained in:
Will Fancher
2024-10-05 13:44:39 -04:00
committed by GitHub

View File

@@ -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"