Colmena | 308 Members | |
| A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena | 104 Servers |
| Sender | Message | Time |
|---|---|---|
| 4 Jan 2022 | ||
| 👋 | 23:42:50 | |
| 5 Jan 2022 | ||
| 07:40:54 | ||
| hello there | 07:51:20 | |
| 15:54:38 | ||
| I'm getting the following error on a simple deployment at the moment:
| 15:55:24 | |
| NixOS config is
| 15:55:50 | |
| Any ideas on how I could debug that? | 15:57:46 | |
| 16:12:32 | ||
| What does your hive.nix look like? | 17:09:20 | |
In reply to @zhaofeng:zhaofeng.li Sorry for not replying earlier, but I don't have a hive.nix, just a flake.nix as follows:
| 21:35:33 | |
| That confirms my suspicions in https://matrix.to/#/!KqkRjyTEzAGRiZFBYT:nixos.org/$YU9o4IlsSyfFcrRGby4AGBIvMLhMH0OPdWvEG4-5Qnk?via=nixos.org&via=matrix.org&via=tchncs.de | 21:36:44 | |
Change specialArgs to meta.specialArgs | 21:36:53 | |
| Oh I didn't even see your reply there, so sorry! | 21:37:24 | |
| Well, that does it! Thank you so much! Is this a recent change, that specialArgs are required? | 21:37:59 | |
No, you need to pass it in otherwise there is no argument named home-manager | 21:38:54 | |
| The odd thing is I've got a different system with roughly the same flake.nix setup, but for a bunch of TV settop systems. They also use home-manager in exactly the same manner, but there's no specialArgs defined there, and it still works | 21:39:05 | |
Is home-manager there as part of the NixOS module arguments? That shouldn't have worked. | 21:40:17 | |
But if you put the configuration in the same file as flake.nix, then home-manager is usable from the context | 21:40:47 | |
| The difference between the other system and this one is that this one is running NixOS, and the other is just Ubuntu with Nix slapped on top | 21:40:52 | |
* But if you put the configuration in the same file as flake.nix, then home-manager is usable from the context in outputs | 21:40:55 | |
In reply to @zhaofeng:zhaofeng.liYea, it is | 21:41:15 | |
In reply to @necrophcodr:matrix.orgWell technically no, it isn't. It is, but in a different file that's imported using imports = [ ... ]; | 21:41:53 | |
| It IS running an older colmena version too | 21:42:24 | |
| It's in fact an older version of colmena as well, where I've got
| 21:42:28 | |
| (The one where it magically works) | 21:42:40 | |
| Can you show the full config (or just the relevant parts)? | 21:43:28 | |
| I'll show the relevant parts since the other system where it works is for business stuff | 21:44:05 | |
| So the flake.nix is simple:
| 21:45:12 | |
| importing of nodes using the stanndard node = import node.nix method | 21:45:32 | |
Ok, what about the part where home-manager is referenced? | 21:45:58 | |