Skip to content

Commit 040c1ce

Browse files
committed
fix: map timers.target to system-manager.target in substituteTarget
Timer units with wantedBy = timers.target were never started because timers.target is already active when system-manager activates. By mapping timers.target to system-manager.target, timers are pulled in during activation alongside other managed services.
1 parent 5e5ed07 commit 040c1ce

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

nix/modules/systemd.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ let
1313
systemd-lib = utils.systemdUtils.lib;
1414

1515
substituteTarget =
16-
target: if target == "multi-user.target" then "system-manager.target" else target;
16+
target:
17+
if target == "multi-user.target" || target == "timers.target" then
18+
"system-manager.target"
19+
else
20+
target;
1721
in
1822
{
1923
options.systemd = {

0 commit comments

Comments
 (0)