0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos/systemd-stage-1: Don't enable TPM2 on scripted stage 1

This commit is contained in:
Will Fancher 2024-10-04 19:50:32 -04:00
parent d5f1752ca9
commit 3e90d5a2bc

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"