15 Feb 2024 |
dustee | how do i declare a hydra job that will build my nixosConfigurations.myhost from my flake? | 09:14:23 |
dustee | * 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 | * 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 | id like for hydra to build all the things necessary for that host so i will have them available the next time i rebuild switch | 09:17:15 |
dustee | could i maybe extend my flake with hydraJob somehow? but still dont know what to put in there | 09:18:08 |
dustee | * 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 hydraJob | 09:19:19 |
magic_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 | thanks, just need to figure out how to do that with flake-parts ... | 09:45:05 |
dustee | 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 | * 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 | * 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 | * 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 | * 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 | * 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 | * 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 | * 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 | * 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 joined the room. | 11:23:51 |
| ajs124 left the room. | 11:24:50 |
Arian | Redacted or Malformed Event | 11:41:00 |
magic_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 | is it possible to go from git+https:// to something: ? that would simplify | 22:32:08 |
magic_rb | * is it possible to go from git+https:// to something: ? that would simplify things | 22:32:11 |
magic_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 joined the room. | 03:29:19 |
bri | 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 | Is there a way to download the built outputs from a job on a self-hosted hydra server? | 06:54:10 |
hacker1024 | 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 | 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 | 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 |