still work if gh token doesn't exist yet

This commit is contained in:
Hunter Halloran
2025-12-17 10:59:13 -05:00
parent f77bd93b6a
commit 49e312b67c

View File

@@ -21,4 +21,10 @@ mkIf builderCfg.githubRunner.enable {
workDir = builderCfg.githubRunner.workDir;
replace = true;
};
# Add systemd condition to only start the service if token file exists
# This allows graceful deployment before the token is manually installed
systemd.services."github-runner-${builderCfg.githubRunner.name}".unitConfig = {
ConditionPathExists = builderCfg.githubRunner.tokenFile;
};
}