diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index af394c17cabd..2d81b1bb3d44 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -167,6 +167,7 @@ let ++ lib.optionals cfg.package.withTpm2Units [ "systemd-pcrlock@.service" "systemd-pcrlock.socket" + "systemd-tpm2-clear.service" ] ++ [ @@ -218,7 +219,6 @@ let "factory-reset.target" "systemd-factory-reset-request.service" "systemd-factory-reset-reboot.service" - "systemd-tpm2-clear.service" ] ++ cfg.additionalUpstreamSystemUnits;