Unverified Commit c4510331 authored by WilliButz's avatar WilliButz Committed by GitHub
Browse files

nixos/systemd: Use systemd-tpm2-clear.service only if withTpm2Units (#485842)

parents 3e36abef 22e8275c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -164,9 +164,10 @@ let
    "systemd-creds@.service"
    "systemd-creds.socket"
  ]
  ++ lib.optional cfg.package.withTpm2Units [
  ++ 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;