12 Mar 2025 |
| wantguns joined the room. | 12:25:51 |
wantguns | hi folks, im very new to nix, currently trying to make a flake which has the darwin/nix configs of all my hosts: https://gist.github.com/wantguns/25ccb4f7669377f256836766fe18c8a4
even though darwin-rebuild works for this flake, the colmena deploy --on "<host>" errors with: https://bin.wantguns.dev/p/X1jVmV | 12:43:35 |
wantguns | if there is an example flake i can follow which uses the output / config of a darwinConfiguration as colmena's host's options, that would help a lot | 12:45:30 |
dantefromhell | In reply to @wantguns:matrix.org if there is an example flake i can follow which uses the output / config of a darwinConfiguration as colmena's host's options, that would help a lot my best way to finding code examples is github search 🥴 you can use lang: nix + whatever snippet you know needs to show up in your code. | 12:50:02 |
gmacon | You have to specify a nixpkgs meta attribute that matches. Try passing just import nixpkgs instead of calling it. | 20:30:38 |
wantguns | i didnt get you, how do pass import nixpkgs as a meta attribute ? | 20:58:23 |
wantguns | i didnt get you, how do i pass import nixpkgs as a meta attribute ? | 20:58:29 |
13 Mar 2025 |
gmacon | In your flake.nix on line 43 you have
nixpkgs = import nixpkgs { system = "x86_64-linux"; };
I'm suggesting you instead write
nixpkgs = import nixpkgs;
| 12:44:23 |
14 Mar 2025 |
wantguns | okay, i tried that but it still gave me the same error, i have now moved on to using deploy-rs, and deploy based on activations:
# ...
deploy = {
nodes = builtins.mapAttrs (name: hostConfig:
let
isDarwin = hostConfig.platform == "darwin";
activationPath = if isDarwin
then deploy-rs.lib.${hostConfig.system}.activate.darwin self.darwinConfigurations.${name}
else deploy-rs.lib.${hostConfig.system}.activate.nixos self.nixosConfigurations.${name};
in {
hostname = hostConfig.hostname;
profiles.system = {
user = if isDarwin then hostConfig.username else "root";
path = activationPath;
};
}
) hosts;
};
# ...
| 10:14:42 |
21 Mar 2025 |
| Marcus joined the room. | 20:18:47 |
22 Mar 2025 |
| yorickvp joined the room. | 14:19:06 |
24 Mar 2025 |
| Nicolas changed their display name from Nicolas Lenz to Nicolas. | 13:41:04 |
| slay326 joined the room. | 15:50:56 |
slay326 | Hello, i dont understand why i cant use colmena on a fresh provisioned system.
[ERROR] stderr) error: path '/nix/store/h3filckhc20z273bh1s91mcy6y534ds3-linux-6.12.19-modules-shrunk/lib' is not in the Nix store
I use the unstable channel but i read somewhere that colmena is not compatible with this version, but how does the other two work? | 15:53:23 |
craige | It looks like you need to repair your Nix store @slay326:matrix.org: ? | 21:14:41 |
25 Mar 2025 |
| aleksana 🏳️⚧️ (force me to bed after 18:00 UTC) changed their display name from aleksana (force me to bed after 18:00 UTC) to aleksana 🏳️⚧️ (force me to bed after 18:00 UTC). | 17:00:04 |
26 Mar 2025 |
slay326 | idk i just disabled the build on target and then it worked xd | 08:40:22 |
27 Mar 2025 |
| Aleksander Bang-Larsen joined the room. | 13:27:08 |
28 Mar 2025 |
@jh-devv:matrix.org | Has anyone tried to use https://tinkerbell.org/ or similar with Colmena? | 14:50:18 |
29 Mar 2025 |
hexa | tinkerbell is like a set of services for bare metal automation | 02:01:50 |
hexa | originally developed by packet.net | 02:02:04 |
hexa | so I wonder how you think they relate to colmena | 02:02:21 |
hexa | if the machines are empty colmena is not the tool to set them up | 02:03:07 |
hexa | that could be nixos-anywhere if you can make the machines reachable over SSH | 02:03:20 |
30 Mar 2025 |
| @kevincox:matrix.org left the room. | 00:36:31 |
3 Apr 2025 |
| robsliwi joined the room. | 14:27:32 |
| dantefromhell changed their display name from dantefromhell to MATRIX dantefromhell. | 22:34:35 |
| dantefromhell changed their display name from MATRIX dantefromhell to dantefromhell. | 22:36:26 |
5 Apr 2025 |
| isaacthekind92 joined the room. | 16:09:50 |
isaacthekind92 | Hey there, I'm having a bit of trouble. I keep getting this complaint:
error: The colmenaHive output (schema v0.20241006) isn't compatible with this version of Colmena.
Hint: Use the same version of Colmena as in the Flake input.
It seems like the Colmena in my devshell doesn't match the one provided by the flake input. I'm not really sure how to resolve this. Help would be appreciated, happy to share code if needed.
| 16:12:08 |