Skip to content

Commit

Permalink
nixos/systemd-stage-1: Don't enable TPM2 on scripted stage 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Oct 4, 2024
1 parent d5f1752 commit 3e90d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/systemd/tpm2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e90d5a

Please sign in to comment.