!zghijEASpYQWYFzriI:nixos.org

Hydra

376 Members
109 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Feb 2024
@k900:0upti.meK900Hydra doesn't really integrate back into your forge18:00:39
@k900:0upti.meK900Any forge18:00:41
@k900:0upti.meK900If you want to do real CI, you probably want to use Gitea's built-in whatever it has18:01:07
@k900:0upti.meK900 And just run nix build with a bunch of builders 18:01:14
@ma27:nicht-so.sexyma27
In reply to @ronnypfannschmidt:matrix.org

Anyone aware of a example configuration for running hydera against a own repository on a self hosted forge?

I have a gitea instance and I'd like to run nix ci for my flakes on it

hydra can give you status checks (check mark vs red x) in your gitea repo.
there's PR support for github, but nobody has ported it to other solutions so far.
18:03:26
@ma27:nicht-so.sexyma27 https://github.com/NixOS/hydra/blob/c1bd50a80db45930cdfc1975903d1f76cca1053a/doc/manual/src/projects.md?plain=1#L371-L405 18:04:40
@ronnypfannschmidt:matrix.org@ronnypfannschmidt:matrix.orgi understand, then i'll have to use act-runner on gitea after upgrading things18:13:45
@antifuchs:asf.computer@antifuchs:asf.computer
In reply to @antifuchs:asf.computer
why that seems to land unescaped on a bash cmdline is ... not clear to me, and it seems scary
whoops, the script that does this is written by me in the jobsets job. Helps to do cat <<'EOF' instead of <<EOF
19:59:14
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @toonn:matrix.org
magic_rb: No clue TBH but wouldn't the URI for a path be file://<your path>?
I bypassed it, made an empty repo on sourcehut
20:06:58
14 Feb 2024
@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de@5m5z3q888q5prxkg:chat.lightnovel-dungeon.de changed their profile picture.19:41:34
15 Feb 2024
@dustee:matrix.orgdustee how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? 09:14:23
@dustee:matrix.orgdustee * how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? i tried Flake URI = path:/nix/config#nixos-my-server-02 09:15:40
@dustee:matrix.orgdustee * how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? i tried Flake URI = path:/nix/config#nixos-my-server-02 but evaluation fails 09:15:49
@dustee:matrix.orgdusteeid like for hydra to build all the things necessary for that host so i will have them available the next time i rebuild switch09:17:15
@dustee:matrix.orgdusteecould i maybe extend my flake with hydraJob somehow? but still dont know what to put in there09:18:08
@dustee:matrix.orgdustee * could i maybe extend my flake with hydraJob and then target the flake repo with hydra? but still dont know what to put in the hydraJob09:19:19
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @dustee:matrix.org
could i maybe extend my flake with hydraJob somehow? but still dont know what to put in there
Just put nixosConfigurations.yourhost.config.system.build.toplevel there into an attrset at the yourhost key
09:22:13
@dustee:matrix.orgdusteethanks, just need to figure out how to do that with flake-parts ...09:45:05
@dustee:matrix.orgdustee i think it works but im getting a bunch of forbidden in restricted mode errors, is it possible to disable restricted mode in hydra? 10:35:11

Show newer messages


Back to Room ListRoom Version: 6