!zghijEASpYQWYFzriI:nixos.org

Hydra

365 Members
107 Servers

Load older messages


SenderMessageTime
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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@dustee:matrix.orgdustee * 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
@ajs124:ajs124.de@ajs124:ajs124.de joined the room.11:23:51
@andreas.schraegle:helsinki-systems.deajs124 left the room.11:24:50
@arianvp:matrix.orgArianRedacted or Malformed Event11:41:00
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @dustee:matrix.org
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
okay do not rely on what command works, hydra may and will disagree, you have to please the almighty hydra
22:31:35
@magic_rb:matrix.redalder.orgmagic_rb is it possible to go from git+https:// to something: ? that would simplify 22:32:08
@magic_rb:matrix.redalder.orgmagic_rb * is it possible to go from git+https:// to something: ? that would simplify things 22:32:11
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @dustee:matrix.org
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
* 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
@bri:catgirl.cloudbri joined the room.03:29:19
@bri:catgirl.cloudbri
In reply to @dustee:matrix.org
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
does 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
@bri:catgirl.cloudbri Is there a way to download the built outputs from a job on a self-hosted hydra server? 06:54:10
@hacker1024:matrix.orghacker1024
In reply to @bri:catgirl.cloud
Is there a way to download the built outputs from a job on a self-hosted hydra server?
It 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
@bri:catgirl.cloudbri 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
@bri:catgirl.cloudbri 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

Show newer messages


Back to Room ListRoom Version: 6