nixos/github-runner: add workDir option

This commit is contained in:
Alex Martens
2023-01-03 19:54:25 -08:00
parent 834927530c
commit 307730fb72
2 changed files with 36 additions and 15 deletions

View File

@@ -170,4 +170,16 @@ with lib;
default = null;
defaultText = literalExpression "username";
};
workDir = mkOption {
type = with types; nullOr str;
description = lib.mdDoc ''
Working directory, available as `$GITHUB_WORKSPACE` during workflow runs
and used as a default for [repository checkouts](https://github.com/actions/checkout).
The service cleans this directory on every service start.
A value of `null` will default to the systemd `RuntimeDirectory`.
'';
default = null;
};
}