!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

270 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena93 Servers

Load older messages


SenderMessageTime
12 Mar 2025
@wantguns:matrix.orgwantguns joined the room.12:25:51
@wantguns:matrix.orgwantgunshi 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/X1jVmV12:43:35
@wantguns:matrix.orgwantguns 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:matrix.orgdantefromhell
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:matrix.orggmacon You have to specify a nixpkgs meta attribute that matches. Try passing just import nixpkgs instead of calling it. 20:30:38
@wantguns:matrix.orgwantguns i didnt get you, how do pass import nixpkgs as a meta attribute ? 20:58:23
@wantguns:matrix.orgwantguns i didnt get you, how do i pass import nixpkgs as a meta attribute ? 20:58:29
13 Mar 2025
@gmacon:matrix.orggmacon

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:matrix.orgwantguns 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
@marcusramberg:matrix.orgMarcus joined the room.20:18:47
22 Mar 2025
@yorickvp:matrix.orgyorickvp joined the room.14:19:06
24 Mar 2025
@eisfunke:eisfunke.comNicolas changed their display name from Nicolas Lenz to Nicolas.13:41:04
@slay326:matrix.orgslay326 joined the room.15:50:56
@slay326:matrix.orgslay326Hello, 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:mcwhirter.iocraige It looks like you need to repair your Nix store @slay326:matrix.org: ? 21:14:41
25 Mar 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (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:matrix.orgslay326idk i just disabled the build on target and then it worked xd08:40:22
27 Mar 2025
@aleksanderbl:matrix.orgAleksander Bang-Larsen joined the room.13:27:08
28 Mar 2025
@jh-devv:matrix.org@jh-devv:matrix.org Has anyone tried to use https://tinkerbell.org/ or similar with Colmena? 14:50:18
29 Mar 2025
@hexa:lossy.networkhexatinkerbell is like a set of services for bare metal automation02:01:50
@hexa:lossy.networkhexaoriginally developed by packet.net02:02:04
@hexa:lossy.networkhexaso I wonder how you think they relate to colmena02:02:21
@hexa:lossy.networkhexaif the machines are empty colmena is not the tool to set them up02:03:07
@hexa:lossy.networkhexathat could be nixos-anywhere if you can make the machines reachable over SSH02:03:20
30 Mar 2025
@kevincox:matrix.org@kevincox:matrix.org left the room.00:36:31
3 Apr 2025
@rob.sliwi:matrix.orgrobsliwi joined the room.14:27:32
@dantefromhell:matrix.orgdantefromhell changed their display name from dantefromhell to MATRIX dantefromhell.22:34:35
@dantefromhell:matrix.orgdantefromhell changed their display name from MATRIX dantefromhell to dantefromhell.22:36:26
5 Apr 2025
@isaacthekind92:matrix.orgisaacthekind92 joined the room.16:09:50
@isaacthekind92:matrix.orgisaacthekind92

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

Show newer messages


Back to Room ListRoom Version: 6