update giteaHost, fix redundant boolean #72

Merged
ahuston-0 merged 1 commits from feature/self-hydra into main 2025-03-31 15:14:00 -04:00

View File

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