Skip to content

Commit 6b663a6

Browse files
committed
fix(colima): auto-restart launchd agent on boot-time failure
KeepAlive=false meant the single RunAtLoad attempt at login was the only chance to start colima. If that attempt failed due to boot-time races (VZ framework, stale lockfiles, virtiofs mount), launchd never retried and required manual `colima start`. Switch to SuccessfulExit=false so launchd retries on non-zero exit while still respecting clean `colima stop`. Bump ThrottleInterval to 60s to give the system more headroom between retries.
1 parent 127a079 commit 6b663a6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

modules/services/colima.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ in
2929
DOCKER_CONFIG = "${config.xdg.configHome}/docker";
3030
};
3131
RunAtLoad = true;
32-
KeepAlive = false;
33-
ThrottleInterval = 30;
32+
KeepAlive = {
33+
SuccessfulExit = false;
34+
};
35+
ThrottleInterval = 60;
3436
StandardOutPath = "${logDir}/colima.log";
3537
StandardErrorPath = "${logDir}/colima.log";
3638
};

0 commit comments

Comments
 (0)