github-runner/service.nix: fix missing argument in workDir assertion

This commit is contained in:
Tom McLaughlin 2025-06-29 13:43:52 -07:00
parent 1dd19f19e4
commit 7f9694a4be

View file

@ -27,7 +27,7 @@ in
message = "`services.github-runners.${name}`: The `extraLabels` option is mandatory if `noDefaultLabels` is set";
}
{
assertion = cfg.workDir == null || !(hasPrefix "/run/" cfg.workDir || hasPrefix "/var/run/" cfg.workDir || hasPrefix "/private/var/run/");
assertion = cfg.workDir == null || !(hasPrefix "/run/" cfg.workDir || hasPrefix "/var/run/" cfg.workDir || hasPrefix "/private/var/run/" cfg.workDir);
message = "`services.github-runners.${name}`: `workDir` being inside /run is not supported";
}
])