@@ -160,6 +160,7 @@ let
160160 "systemd-timedated.service"
161161 "systemd-localed.service"
162162 "systemd-hostnamed.service"
163+ "systemd-binfmt.service"
163164 ]
164165
165166 ++ cfg.additionalUpstreamSystemUnits;
@@ -779,6 +780,7 @@ in
779780 systemd.services.systemd-user-sessions.restartIfChanged = false; # Restart kills all active sessions.
780781 systemd.targets.local-fs.unitConfig.X-StopOnReconfiguration = true;
781782 systemd.targets.remote-fs.unitConfig.X-StopOnReconfiguration = true;
783+ systemd.services.systemd-binfmt.wants = [ "proc-sys-fs-binfmt_misc.automount" ];
782784
783785 # Don't bother with certain units in containers.
784786 systemd.services.systemd-remount-fs.unitConfig.ConditionVirtualization = "!container";