Sender | Message | Time |
---|---|---|
4 Feb 2022 | ||
yeah, provisioning seems inherently incompatible with statelessness | 20:47:19 | |
Buckley: I have found a decent solution, I think | 20:47:56 | |
eval-config has an additional parameter extraModules https://github.com/NixOS/nixpkgs/blob/a0ad8dcd354c67f084511e4ae78a27af83df95fd/nixos/lib/eval-config.nix#L28 - That allows you to add your usual modules to modules , and colmena.nixosModules.deploymentOptions to extraModules | 20:48:45 | |
So in general it looks like this for me now:
| 20:49:46 | |
i think my ideal scenario would be for nixosConfigurations to import the colmena module explicitly, and then nxiosConfigurations to be read directly by colmena... though i do not claim this to be an easy lift :D | 20:51:41 | |
ive poked around the codebase a bit in hopes of writing some PRs but i just haven't put enough time into the rust stuff to figure it out yet | 20:52:41 | |
In reply to @buckley310:matrix.orgYes, that would be the "best case", but I think I'm happy with my shim-method now 🙂 | 20:56:18 | |
shims for days 😎 | 21:00:59 | |
[zhaofengli/colmena] cole-h opened
issue
#54: Don't require meta.nixpkgs if meta.nodeNixpkgs is set for the target host(s)
| 23:48:40 | |
[zhaofengli/colmena] cole-h opened
issue
#55: Move meta.nodeNixpkgs to deployment.nixpkgs inside the node config
| 23:56:28 | |
[zhaofengli/colmena] cole-h edited issue #54: Don't require meta.nixpkgs if meta.nodeNixpkgs is set for the target host(s) | 23:56:56 | |
5 Feb 2022 | ||
[zhaofengli/colmena] Repo forked into cole-h/colmena | 01:06:39 | |
[zhaofengli/colmena] cole-h drafted
pull request
#56: WIP: add deployment.nixpkgs option
| 01:08:13 | |
[zhaofengli/colmena] cole-h commented on pull request #56: WIP: add deployment.nixpkgs option | 01:10:06 | |
[zhaofengli/colmena] cole-h edited pull request #56: WIP: add deployment.nixpkgs option | 01:16:27 | |
[zhaofengli/colmena] zhaofengli commented on
pull request
#56: WIP: add deployment.nixpkgs option :
| 02:07:08 | |
Wow, that was noisy 🙉 Let me turn off the comment and edit notifications... | 03:14:01 | |
Well, actually I can't just disable the webhook event, since the "Pull requests" event encompasses PR opening (which I want to appear), (un)drafting as well as editing of the description. It has to be done from the bot's end which isn't very configurable 🤷♂️ | 03:19:16 | |
9 Feb 2022 | ||
Zhaofeng Li: How did you determine that the change in e58dde1be08cf7fbac7299e928b6d0e143edbec9 would fix #50? Like, what was your debug process? | 16:15:32 | |
curious | 16:15:34 | |
In reply to @winterqt:nixos.devI reproduced on my end, and it also resulted in logs in the following form: /nix/store/2vw01kp965w65cjb390c5hpcn220qavi-source/nixos/modules//nix/store/2vw01kp965w65cjb390c5hpcn220qavi-source/nixos/modules/config/debug-info.nix . So there were two repeated modulePaths, somehow. | 19:18:30 | |
In reply to @winterqt:nixos.dev* I reproduced on my end, and it also resulted in logs in the following form: '/nix/store/2vw01kp965w65cjb390c5hpcn220qavi-source/nixos/modules//nix/store/2vw01kp965w65cjb390c5hpcn220qavi-source/nixos/modules/config/debug-info.nix': no such file or directory . So there were two repeated modulePaths, somehow. | 19:19:15 | |
Then I added traces to the split docs build process in documentation.nix, and found out that it was trying to do a removePrefix on the full module paths using modulesPath , and remembered that I was explicitly setting modulesPath in Colmena | 19:21:04 | |
In reply to @zhaofeng:zhaofeng.ligot it -- why were you setting it in the first place, anyways? | 20:10:36 | |
In reply to @winterqt:nixos.devIt was added very early on to debug some missing argument problems that turned out to be unrelated. But yeah, shouldn't have added it in the first place. | 20:13:16 | |
got it. | 20:56:28 | |
does Colmena add much overhead to the underlying things it does? or does speed depend on build speed + ssh connection latency + multiple ssh connection handshakes (unless you use ControlMaster)? | 20:57:14 | |
In reply to @winterqt:nixos.devAt its core Colmena is basically a "shell command scheduler" for lack of a better term, and it doesn't add much latency to what it shells out to do (nix-instantiate, nix-build, ssh) | 21:03:44 | |
right, that's what i got from the code | 21:05:09 | |
And regarding ControlMaster, it is indeed required if you have a lot of key files, for instance, otherwise the deployment can be very slow. And before you jump in suggesting using thrussh/ssh2, yes, I have considered it (and it was the plan for the beginning), but the downsides outweigh the upsides: https://github.com/zhaofengli/colmena/issues/6 | 21:07:13 |