| 18 Nov 2024 |
ibizaman | In reply to @jh-devv:matrix.org Does this support iPXE? Ah no I didn’t do that in my template. But it’s definitely doable. I found a few links though https://wiki.nixos.org/wiki/Netboot and https://carlosvaz.com/posts/ipxe-booting-with-nixos/ | 09:33:34 |
ibizaman | In reply to @luna:bddvlpr.com
{
self,
inputs,
...
}: let
inherit (self) outputs;
inherit (builtins) mapAttrs;
in {
flake = {
colmena =
(mapAttrs (host: value: {
deployment = {
targetHost = "${host}.cloud.bddvlpr.com";
};
})
outputs.nixosConfigurations)
// {
meta = {
nixpkgs = import inputs.nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
};
colmenaHive = inputs.colmena.lib.makeHive outputs.colmena;
};
}
This is the current configuration, btw. I’m maybe misreading, did you leave out the configuration for the host you’re trying the build the config for? | 09:36:43 |
Luna | No, I think I get what I'm doing wrong now. I thought that it just required outputs.colmena to get the deployment settings and would actually look up the host at outputs.nixosConfigurations like deploy-rs would. I'll try just merging them now. | 09:37:45 |
ibizaman | In reply to @luna:bddvlpr.com No, I think I get what I'm doing wrong now. I thought that it just required outputs.colmena to get the deployment settings and would actually look up the host at outputs.nixosConfigurations like deploy-rs would. I'll try just merging them now. Ah I see indeed that seems like the likely culprit. | 09:38:17 |
Luna | As for the meta nixpkgs, does this have to be a set architecture? | 09:39:03 |
Luna | Can't it be dynamic depending on the host running commands? | 09:39:16 |
ibizaman | In reply to @luna:bddvlpr.com Can't it be dynamic depending on the host running commands? Dynamic, not sure. But you can use https://colmena.cli.rs/unstable/reference/meta.html#nodenixpkgs for node specific nixpkgs. There’s an example here https://colmena.cli.rs/unstable/tutorial/index.html | 09:57:42 |
Luna | Finally got it evaluating with https://github.com/zhaofengli/colmena/issues/60#issuecomment-1510496861. I still don't get the use of meta.nixpkgs in particular though. | 10:01:02 |
Luna | Another small note, can I define --experimental-flake-eval somewhere in the config that I don't have to add it to every command? | 10:01:59 |
ibizaman | In reply to @luna:bddvlpr.com Another small note, can I define --experimental-flake-eval somewhere in the config that I don't have to add it to every command? I don’t think you can add it in the config of this flake.nix, but you can set it permanently by following examples here https://wiki.nixos.org/wiki/Flakes | 10:04:47 |
Luna | I don't see how that wiki has information on how to set that permanently. I'm not talking about Nix's --experimental-features 'flakes', colmena's experimental flake eval requires its own --experimental-flake-eval. | 10:07:08 |
ibizaman | Oh. I never used that 🤔 I enabled it like the wiki suggested and I never needed that command | 10:15:04 |
ibizaman | * | 10:15:16 |
| 19 Nov 2024 |
| @garionion:entr0py.de left the room. | 10:58:23 |
| 21 Nov 2024 |
| Frédéric Christ joined the room. | 05:14:08 |
| Thomas m joined the room. | 22:15:59 |
| 25 Nov 2024 |
| @nullcube:matrix.org joined the room. | 10:04:26 |
| 28 Nov 2024 |
/madonius[er|he] | is it new that a file has to be fully check in for colmena to build the derivation? | 21:24:56 |
hexa | that sounds like you switched to flakes | 21:29:59 |
/madonius[er|he] | I was using flakes the whole time, but with the 24.05 I had no issues with the files just being tracked by git | 21:33:47 |
/madonius[er|he] | now I have to fully commit them in order for them to get built | 21:34:01 |
/madonius[er|he] | I asked over at #users:nixos.org and they said that that should not be the case and to ask here | 21:35:08 |
/madonius[er|he] | 🤷 | 21:35:11 |
David Sánchez | I think it’s this issue that has been fixed, but I think a new version of colmena including it hasn’t been released yet
https://github.com/zhaofengli/colmena/issues/202 | 23:01:45 |
| 29 Nov 2024 |
| bl1nk changed their profile picture. | 01:11:40 |
| bl1nk changed their profile picture. | 01:11:57 |
| Khalil Santana changed their display name from khalil to Khalil Santana. | 12:21:11 |
/madonius[er|he] | ah thanks :) | 15:40:07 |
/madonius[er|he] | I mean it's not too shabby to be forced to check in you changes :D | 15:40:22 |
| 8 Dec 2024 |
| mannp joined the room. | 18:51:48 |