builder config with options

This commit is contained in:
Hunter Halloran
2025-12-17 10:43:43 -05:00
parent 8cdedae4db
commit a0e09336ad
5 changed files with 185 additions and 26 deletions

View File

@@ -98,22 +98,27 @@
devices = {
"nix-builder" = {
# GitHub Actions self-hosted runner configuration
# The runner will register itself with the repository on first start
services.github-runners.nixos-systems = {
enable = true;
url = "https://github.com/UGA-Innovation-Factory/nixos-systems";
# Token file must be created manually at this path with a GitHub PAT
# that has repo access. Generate at: https://github.com/settings/tokens
# echo "YOUR_TOKEN_HERE" | sudo tee /var/lib/github-runner-token > /dev/null
tokenFile = "/var/lib/github-runner-token";
# Labels to identify this runner in workflows
extraLabels = [ "nix-builder" ];
# User to run the runner as
user = "engr-ugaif";
# Working directory for runner
workDir = "/var/lib/github-runner";
# Replace runner on config changes
replace = true;
ugaif.sw = {
type = [
"headless"
"builders"
];
builders.githubRunner = {
enable = true;
url = "https://github.com/UGA-Innovation-Factory/nixos-systems";
# Token file must be created manually at this path with a GitHub PAT
# that has repo access. Generate at: https://github.com/settings/tokens
# echo "YOUR_TOKEN_HERE" | sudo tee /var/lib/github-runner-token > /dev/null
tokenFile = "/var/lib/github-runner-token";
# Labels to identify this runner in workflows
extraLabels = [ "nix-builder" ];
# User to run the runner as
user = "engr-ugaif";
# Working directory for runner
workDir = "/var/lib/github-runner";
# Runner service name
name = "nixos-systems";
};
};
};
"usda-dash" = builtins.fetchGit {