11 May 2024 |
rendakuenthusiast⚡️ | it would really be nice if https://colmena.cli.rs/unstable/features/remote-builds.html had some more detail | 08:37:04 |
rendakuenthusiast⚡️ | 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 hosts | 08:37:43 |
rendakuenthusiast⚡️ | and I've been having trouble following those directions | 08:38:09 |
rendakuenthusiast⚡️ | 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 deploy | 08:40:51 |
rendakuenthusiast⚡️ | I get an error "corrupted size vs. prev_size" when evaluating a host and colmena crashes | 08:41:35 |
rendakuenthusiast⚡️ | and I'm not sure if waht I'm doing is actually the right way to accomplish the goal I care about | 08:41:44 |
rendakuenthusiast⚡️ | 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 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 joined the room. | 03:45:13 |
| Josh Cox joined the room. | 19:40:15 |
Josh 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 |
Josh 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, this does seem to be a bug of some sort. | 12:39:29 |
Josh 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 joined the room. | 20:45:48 |
@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 | The only lead this I have on that problem is this issue: https://github.com/zhaofengli/colmena/issues/60#issuecomment-1849931304 | 21:40:56 |
@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 | So the eval discrepencies were bc of a subtility in my own config, not on colmena's side | 19:53:55 |
20 May 2024 |
dmoonfire | I need to grok the node nixpkgs in regards to stale vs unstable, and aarch verses x86-64. | 22:46:04 |
21 May 2024 |
| Agatha Valentine Lovelace joined the room. | 10:06:32 |
| @agathasorceress:finallycoffee.eu left the room. | 21:43:49 |
| Agatha Valentine Lovelace changed their profile picture. | 23:02:06 |
22 May 2024 |
Josh Cox | dmoonfire: lol @ staLe in --> 'stale vs unstable' on aarch64 vs x86_64 I have an example I am using currently here | 02:40:50 |
Josh Cox | stable should be renamed to stale, lol | 02:41:19 |
| NixOS Moderation Botchanged room power levels. | 15:26:09 |
| NixOS Moderation Botchanged room power levels. | 15:28:22 |
| @cathalmullan:matrix.org left the room. | 15:49:59 |
dustee | my colmena reports error that my nixpkgs.hostPlatform is not set, but when i run nixos-rebuild it goes fine with the exact same module set | 19:52:20 |
dustee | * hello i am having a weird issue, my colmena reports an error that my nixpkgs.hostPlatform is not set, but when i run nixos-rebuild it goes fine with the exact same module set | 19:52:39 |