!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
5 May 2024
@dantefromhell:matrix.orgdantefromhell
In reply to @jeff:ocjtech.us
Never tried terranix, didn't know it was a thing until now.
I havent used the data blocks but the rest of my TF config is native nix
18:18:01
6 May 2024
@test-user:c.imperishable.namerendakuenthusiast⚡️ I often run into problems where I'm deploying to a remote machine, and colmena tells me something like Activating system profile and then hangs for many minutes 09:17:07
@test-user:c.imperishable.namerendakuenthusiast⚡️I am not sure how to get diagnostic information from the remote machine when this happens09:17:22
7 May 2024
@pinpox:matrix.orgpinpox left the room.20:12:07
@pistache:systemli.orgpistache changed their display name from pistache to p̴͖͌i̵̼̔s̴̙̾t̶͕̀a̴͍̓c̸̞̉h̴̳͝e̴̠͗.23:23:35
@pistache:systemli.orgpistache changed their display name from p̴͖͌i̵̼̔s̴̙̾t̶͕̀a̴͍̓c̸̞̉h̴̳͝e̴̠͗ to pistache.23:24:42
@pistache:systemli.orgpistache changed their profile picture.23:47:43
8 May 2024
@sntx:matrix.orgsntx

ats

22:50:55
@sntx:matrix.orgsntx

I mistyped while trying out a tui matrix client, my bad

22:51:52
10 May 2024
@marshmallow:althaea.zonemarshmallow joined the room.02:45:51
11 May 2024
@test-user:c.imperishable.namerendakuenthusiast⚡️it would really be nice if https://colmena.cli.rs/unstable/features/remote-builds.html had some more detail08:37:04
@test-user:c.imperishable.namerendakuenthusiast⚡️I would like to implement a setup where I can run colmena on my laptop, have it perform the build on an external build machine and cache it there, and then deploy that to multiple hosts08:37:43
@test-user:c.imperishable.namerendakuenthusiast⚡️and I've been having trouble following those directions08:38:09
@test-user:c.imperishable.namerendakuenthusiast⚡️in particular if I set up a machines file with the ssh address of an ordinary nixos host I want to use as a build machine, set my local user as a nixos trusted user locally, and do my normal colmena deploy08:40:51
@test-user:c.imperishable.namerendakuenthusiast⚡️I get an error "corrupted size vs. prev_size" when evaluating a host and colmena crashes08:41:35
@test-user:c.imperishable.namerendakuenthusiast⚡️and I'm not sure if waht I'm doing is actually the right way to accomplish the goal I care about08:41:44
@test-user:c.imperishable.namerendakuenthusiast⚡️ I wonder if I need to set up https://github.com/zhaofengli/attic which Zhaofeng Li also maintains. but it seems like the actual building still happens locally rather than on a remote machine, which is not what I want 08:43:42
12 May 2024
@zhaofeng:zhaofeng.liZhaofeng Li I think running Colmena remotely on the builder machine is the easiest way to go and doesn't involve copying built paths back to the laptop 00:09:14
13 May 2024
@nixy:nixy.moenixy joined the room.03:45:13
@uberthoth:matrix.orgJosh Cox joined the room.19:40:15
@uberthoth:matrix.orgJosh Cox Hello all! I recently started using colmena, one of my hosts has developed a "because it lacks a signature by a trusted key" error. Performing a colmena upload-keys completes without error. How do I for that host update its keys, or how do I debug as to what is going wrong? 19:43:21
14 May 2024
@uberthoth:matrix.orgJosh Coxok one solution, I had been using an alternate targetUser, changing this back to root enabled this host to pass the tests. However, all of my other hosts are still using the alternate user, this does seem to be a bug of some sort.12:39:29
@uberthoth:matrix.orgJosh Cox * ok one solution, I had been using an alternate targetUser, changing this back to root enabled this host to pass the tests. However, all of my other hosts are still using the alternate user (*without issue), this does seem to be a bug of some sort.15:47:20
17 May 2024
@julienmalka:matrix.org@julienmalka:matrix.org joined the room.20:45:48
@julienmalka:matrix.org@julienmalka:matrix.org

I am struggling with some kind of evaluation bug with colmena. This is how my configuration looks like:

  nixosConfigurations = builtins.mapAttrs (
    name: value:
    (mkMachine {
      inherit name;
      host-config = value;
      modules = nixosModules;
      nixpkgs = lib.luj.machines.${name}.nixpkgs_version;
      system = lib.luj.machines.${name}.arch;
      home-manager = lib.luj.machines.${name}.hm_version;
    })
  ) (lib.importConfig ./machines);

  colmena =
    let
      deployableConfigurations = lib.filterAttrs (
        _: v: builtins.hasAttr "ipv4" lib.luj.machines.${v.config.networking.hostName}
      ) nixosConfigurations;
    in
    {
      meta = {
        nixpkgs = import inputs.nixpkgs { system = "x86_64-linux"; };
        nodeNixpkgs = builtins.mapAttrs (_: v: v.pkgs) deployableConfigurations;
        nodeSpecialArgs = builtins.mapAttrs (_: v: v._module.specialArgs) deployableConfigurations;
        specialArgs.lib = lib;
      };
    }
    // builtins.mapAttrs (_: v: { imports = v._module.args.modules; }) deployableConfigurations;

Strangely, nixosConfigurations.$node.config.build.toplevel doesn't evaluation as the same derivation as colmena's $node.config.build.toplevel creating difficulties to debug things and deploy my systems consistently

21:40:20
@julienmalka:matrix.org@julienmalka:matrix.orgThe only lead this I have on that problem is this issue: https://github.com/zhaofengli/colmena/issues/60#issuecomment-184993130421:40:56
@julienmalka:matrix.org@julienmalka:matrix.org Indeed, when I disable nodeNixpkgs I get again the same evaluation on both sides, but I kinda need nodeNixpkgs to have some machines use nixos-23.11 and some nixos-unstable 21:41:42
18 May 2024
@julienmalka:matrix.org@julienmalka:matrix.orgSo the eval discrepencies were bc of a subtility in my own config, not on colmena's side19:53:55
20 May 2024
@dmoonfire:matrix.orgdmoonfireI need to grok the node nixpkgs in regards to stale vs unstable, and aarch verses x86-64.22:46:04
21 May 2024
@agathasorceress:161.rocksAgatha Valentine Lovelace joined the room.10:06:32

Show newer messages


Back to Room ListRoom Version: 6