Hydra | 369 Members | |
| 109 Servers |
| Sender | Message | Time |
|---|---|---|
| 15 Feb 2024 | ||
* i think it works but im getting a bunch of forbidden in restricted mode errors when its trying to pull in inputs, is it possible to disable restricted mode in hydra? | 10:35:40 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this url is problematic error: access to URI 'git+https://.... | 10:39:16 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://.... | 10:39:30 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1?ref=main&rev=43d1... | 10:41:53 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1?ref=main&rev=43d1... is forbidden in restricted mode | 10:42:11 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode | 10:42:40 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode. And this command works nix build --restrict-eval /nix/config#nixosConfigurations.myhost.config.system.build.toplevel | 11:19:03 | |
* i think it works but im getting a bunch of forbidden in restricted mode errors. i already once had this problem and fixed it with allowed-uris = ["github:" "git+" "path:"]; but now again this uri is problematic error: access to URI 'git+https://....?ref=main&rev=43d1... is forbidden in restricted mode. But this command works nix build --restrict-eval /nix/config#nixosConfigurations.myhost.config.system.build.toplevel | 11:19:27 | |
| 11:23:51 | ||
| 11:24:50 | ||
| Redacted or Malformed Event | 11:41:00 | |
In reply to @dustee:matrix.orgokay do not rely on what command works, hydra may and will disagree, you have to please the almighty hydra | 22:31:35 | |
is it possible to go from git+https:// to something: ? that would simplify | 22:32:08 | |
* is it possible to go from git+https:// to something: ? that would simplify things | 22:32:11 | |
In reply to @dustee:matrix.org* okay so do not rely on what command works, hydra may and will disagree, you have to please the almighty hydra | 22:32:17 | |
| 18 Feb 2024 | ||
| 03:29:19 | ||
In reply to @dustee:matrix.orgdoes the allowed-uris have to go in the flake.nix? i ended up putting "github:username/" for all of my inputs in both the nix.conf and the flake.nix, but it would be nice to shorten it to just one… | 03:32:18 | |
| Is there a way to download the built outputs from a job on a self-hosted hydra server? | 06:54:10 | |
In reply to @bri:catgirl.cloudIt acts as a binary cache, so you should just be able to do something like nix-store --extra-substituters https://hydra.example.org -r path-to-derivation-or-output | 06:59:11 | |
| Hm, that’s helpful, but considering I’m building NixOS images for VMs and my laptop I’m hoping maybe there’s a way to get a direct link or even upload it somewhere without reinventing the wheel… | 07:01:54 | |
| After spending way too much time hacking together a bash script to build and upload a few outputs from a flake I was really hoping hydra would solve my problems, lol | 07:04:28 | |
You can make a file in nix-support/hydra-build-products to add links to artifacts in the Web UI.To automatically upload things instead, you can use RunCommand. Search GitHub for examples of these things. | 07:21:11 | |
| thank you, those both sound like they'll solve this for me! i'll check out github | 07:33:47 | |
| thanks so much! | 07:33:58 | |
| No problem, feel free to ask if you have any more questions - the documentation isn't great | 07:34:24 | |
seems to be a running theme in nix and nixos… something something "now simply draw the rest of the owl…" | 07:50:18 | |
| but i should try not to stare at it too long and maybe get some sleep. | 07:51:08 | |
could i please ask someone to help me figure out how to use runCommand (or probably better for my case dynamicRunCommand) and nix-support/hydra-build-products to rsync built products and also give me a URL to them? (hacker1024 in case you're around) | 20:46:18 | |
| in particular i just don't have any idea where i'd begin to edit my flake.nix to add a script, and i saw here
which i see is a bash script, so does that sort of thing need to be run by the runCommand? i assume | 20:50:45 | |
| bri: Hydra will detect outputs in those locations and provide helpful links to them. This is purely for Hydra integration. You would have a hydraJob that would reference the specific artifacts you want so that it would generate nice links. So something like:
| 20:56:11 | |