Colmena | 302 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 104 Servers |
| Sender | Message | Time |
|---|---|---|
| 18 Nov 2024 | ||
In reply to@ibizaman:matrix.orgThose are correctly set and can be seen through the repl. Maybe I'm misunderstanding, does it (like deploy-rs) check for configurations at outputs.nixosConfigurations for matching attributes to outputs.colmena? | 09:31:28 | |
This is the current configuration, btw. | 09:33:32 | |
In reply to @jh-devv:matrix.orgAh 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 | |
In reply to @luna:bddvlpr.comI’m maybe misreading, did you leave out the configuration for the host you’re trying the build the config for?This is the current configuration, btw. | 09:36:43 | |
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 | |
In reply to @luna:bddvlpr.comAh I see indeed that seems like the likely culprit. | 09:38:17 | |
| As for the meta nixpkgs, does this have to be a set architecture? | 09:39:03 | |
| Can't it be dynamic depending on the host running commands? | 09:39:16 | |
In reply to @luna:bddvlpr.comDynamic, 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 | |
| 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 | |
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 | |
In reply to @luna:bddvlpr.comI 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 | |
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 | |
| Oh. I never used that 🤔 I enabled it like the wiki suggested and I never needed that command | 10:15:04 | |
| * | 10:15:16 | |
| 19 Nov 2024 | ||
| 10:58:23 | ||
| 21 Nov 2024 | ||
| 05:14:08 | ||
| 22:15:59 | ||
| 25 Nov 2024 | ||
| 10:04:26 | ||
| 28 Nov 2024 | ||
| is it new that a file has to be fully check in for colmena to build the derivation? | 21:24:56 | |
| that sounds like you switched to flakes | 21:29:59 | |
| 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 | |
| now I have to fully commit them in order for them to get built | 21:34:01 | |
| I asked over at #users:nixos.org and they said that that should not be the case and to ask here | 21:35:08 | |
| 🤷 | 21:35:11 | |
| 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 | ||
| 01:11:40 | ||
| 01:11:57 | ||
| 12:21:11 | ||
| ah thanks :) | 15:40:07 | |