| 21 Mar 2024 |
| NixOS Moderation Botchanged room power levels. | 18:03:17 |
| @grahamc:nixos.org left the room. | 20:07:53 |
| 22 Mar 2024 |
| @mrene:matrix.org left the room. | 00:51:08 |
| 25 Mar 2024 |
| @badele:matrix.org joined the room. | 20:26:10 |
| @belak:matrix.org joined the room. | 22:16:11 |
@belak:matrix.org | I'm looking at the multi-architecture-deployments page and I feel like I must be missing something. In this instance, when you set up meta.nixpkgs, do you specify your "default" architecture, and use the nixos configuration's nixpkgs.system to override when you're not on the default? | 22:40:58 |
@belak:matrix.org | * I'm looking at the multi-architecture-deployments page and I feel like I must be missing something. In this instance, when you set up colmena.meta.nixpkgs, do you specify your "default" architecture, and use the nixos configuration's nixpkgs.system to override when you're not on the default? | 22:41:20 |
@belak:matrix.org | Redacted or Malformed Event | 22:41:32 |
@belak:matrix.org | Also, is there anything like deploy-rs's method of automatically rolling back if it determines something is broken? | 22:42:01 |
| 26 Mar 2024 |
| cblacktech joined the room. | 02:03:57 |
@badele:matrix.org |  Download 2024-03-26_08-22.png | 07:25:17 |
@badele:matrix.org | Hi, i try to test the colmena project, i try test this tutorial => https://github.com/zhaofengli/colmena?tab=readme-ov-file#tutorial-with-flakes but i receive the error message.
Are we in agreement that normally both hosts are supposed to run as guests (containers)? | 07:25:19 |
craige | It looks to me like your deployment host cannot resolve the hostnames / IPs you've used.
I'd be checking simple things like "can I ping the hosts using the hostnames I've configured" | 08:35:13 |
@badele:matrix.org |  Download 2024-03-26_12-40.png | 11:41:59 |
@badele:matrix.org | Thank you craige for your response. Yes, I had understood that was the issue, but the example suggests that we do a 'colmena build' and a 'colmena apply' and we have two instances available in containers (although I'm not sure if they are Docker containers, LXD containers, or something else). | 11:42:10 |
@sammy:cherrykitten.dev | colmena doesn't create the intances for you, it only connects to preexisting machines | 12:48:10 |
| 27 Mar 2024 |
| @admin:nixos.org joined the room. | 13:53:54 |
| Room Avatar Renderer. | 13:54:04 |
| @admin:nixos.org left the room. | 13:54:15 |
| 28 Mar 2024 |
@belak:matrix.org | Is there a good way to convert from a flake's nixosConfigurations output to a colemena node? At the moment, I'm using this, but it seems fairly hacky:
mkColmenaNode = node: {
deployment = {
targetHost = "${node}.elwert.dev";
targetUser = "root";
};
nixpkgs.system = self.nixosConfigurations.${node}.config.nixpkgs.system;
imports = self.nixosConfigurations.${node}._module.args.modules;
};
In particular the self.nixosConfigurations.${node}._module.args.modules line
| 05:17:27 |
@sammy:cherrykitten.dev | In reply to @belak:matrix.org
Is there a good way to convert from a flake's nixosConfigurations output to a colemena node? At the moment, I'm using this, but it seems fairly hacky:
mkColmenaNode = node: {
deployment = {
targetHost = "${node}.elwert.dev";
targetUser = "root";
};
nixpkgs.system = self.nixosConfigurations.${node}.config.nixpkgs.system;
imports = self.nixosConfigurations.${node}._module.args.modules;
};
In particular the self.nixosConfigurations.${node}._module.args.modules line
there were some examples of how to do that here a few days ago, if you've been in this chat longer you should be able to scroll up to see it | 10:08:25 |
@sammy:cherrykitten.dev | In reply to @me:indeednotjames.com you can also specify colmena as a flake input and pass your colmenaHiveĀ attrset to nixosConfiguration, one sec see here and the following mesaages after | 10:09:10 |
@belak:matrix.org | In reply to @sammy:cherrykitten.dev see here and the following mesaages after Oh interesting. I didnāt know colmenaHive was a thing. | 14:17:43 |
@belak:matrix.org | I assumed that was somehow related to hive.nix which people sometimes reference and seems to be completely undocumented | 14:20:24 |
@belak:matrix.org | * I assumed that was somehow related to hive.nix which people sometimes reference and (also) seems to be completely undocumented | 14:22:53 |
@sammy:cherrykitten.dev | yep, colmena documentation is really lacking in some places currently :/
| 16:55:04 |
| 29 Mar 2024 |
| @moira:raccoon.college changed their display name from Moira to Moira (@eh21 DECT 4711). | 11:18:13 |
| 30 Mar 2024 |
sbc64 | This is an unrelated project, but it does what you want belak: https://github.com/juspay/colmena-flake | 06:45:46 |
Bonus | this does literally the same | 20:36:14 |
Bonus | * this does literally the same thing | 20:36:16 |