!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
24 Feb 2025
@galaxyyy:matrix.orgSaturn changed their profile picture.22:37:07
25 Feb 2025
@sumner:nevarro.space@sumner:nevarro.space left the room.15:11:53
26 Feb 2025
@pc:rrier.frpcarrierIs it normal for node enumeration to take tens of seconds and evaluations to take ~3 mins for about 10 nodes?19:25:36
@pc:rrier.frpcarrier* Is it normal for node enumeration to take tens of seconds and evaluations to take ~3 mins for about 10 nodes? running unstable from a few days ago19:26:06
@pc:rrier.frpcarrier * how can I run colmena unstable, ideally through instructions in my flake? (I was hoping to expose a wrapper à la nix run .#c) 19:26:31
@pc:rrier.frpcarrier* Is it normal for node enumeration to take tens of seconds for less than 30 nodes and for evaluations to take ~3 mins for about 10 nodes? running unstable from a few days ago19:26:57
@pc:rrier.frpcarrier* Is it normal for node enumeration to take tens of seconds for less than 30 nodes and for evaluations to take ~3 mins for about 10 nodes? most builds+deploys are really fast in comparison. running unstable from a few days ago.19:27:18
@gmacon:matrix.orggmacon I've found that the heuristic for --node-eval-limit is too optimistic and so my machine swaps like crazy during evaluation if I forget to lower it. With a reasonable value, I see about 30s eval time for 10 nodes. 19:40:17
@pc:rrier.frpcarrierno swapping AFAICT (I do have 96GB of RAM)19:41:43
@gmacon:matrix.orggmaconwell, then... if you only have 30 nodes, that's no problem (the heuristic limit will be 190)20:29:00
27 Feb 2025
@polygon:catgirl.cloudUnit 1721344 [polygon] (it/its, es/ihr) changed their profile picture.08:24:02
@polygon:catgirl.cloudUnit 1721344 [polygon] (it/its, es/ihr) changed their display name from Unit 1721344 [polygon] (it/she) to Unit 1721344 [polygon] (it/its, es/ihr).22:21:08
3 Mar 2025
@recoup3948:matrix.orgrecoup3948 joined the room.16:03:11
4 Mar 2025
@Valodim:stratum0.orgValodim joined the room.20:23:22
5 Mar 2025
@rntpts:synapse.rntpts.derntpts joined the room.23:02:45
7 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to qyriad.16:02:56
8 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from qyriad to Qyriad.21:41:03
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

Show newer messages


Back to Room ListRoom Version: 6