Merge pull request 'update giteaHost, fix redundant boolean' (#72) from feature/self-hydra into main
All checks were successful
Check flake.lock / Check health of `flake.lock` (push) Successful in 11s
Check Nix formatting / Perform Nix format checks (push) Successful in 2m37s
Check Nix flake / Perform Nix flake checks (push) Successful in 7m39s
Update flakes / update_lockfile (push) Successful in 27m8s

Reviewed-on: #72
This commit is contained in:
ahuston-0 2025-03-31 15:14:00 -04:00
commit 5be6b3e723

View File

@ -44,7 +44,7 @@ let
emailoverride = ""; emailoverride = "";
}; };
giteaHost = "ssh://nayeonie.com:2222"; giteaHost = "ssh://gitea@nayeonie.com:2222";
repo = "ahuston-0/nix-dotfiles"; repo = "ahuston-0/nix-dotfiles";
# # Create a hydra job for a branch # # Create a hydra job for a branch
jobOfRef = jobOfRef =
@ -66,8 +66,8 @@ let
name = if info.draft then "draft-${id}" else "pr-${id}"; name = if info.draft then "draft-${id}" else "pr-${id}";
value = makeJob { value = makeJob {
description = "PR ${id}: ${info.title}"; description = "PR ${id}: ${info.title}";
flake = "git+ssh://gitea@nayeonie.com:2222/${info.head.repo.full_name}?ref=${info.head.ref}"; flake = "git+${giteaHost}/${repo}?ref=${info.head.ref}";
enabled = if info.state == "open" then 1 else 0; enabled = info.state == "open";
}; };
}; };