!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
22 Feb 2024
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @raitobezarius:matrix.org
I just find it weird it's an attribute set inside the system that modifies the loaded modules for the evaluation
Yeah, but it's mostly for backwards compatibility, newer configs should provide each node already wrapped
17:42:11
@raitobezarius:matrix.orgraitobezariuswhat does already wrapped means17:42:25
@raitobezarius:matrix.orgraitobezariusbecause I'd imagine that17:42:28
@raitobezarius:matrix.orgraitobezarius targets.nixos cfg = cfg // { os = "nixos"; } ? 17:42:46
@raitobezarius:matrix.orgraitobezariusor would you imagine17:42:52
@raitobezarius:matrix.orgraitobezarius targets.nixos cfg = { _type = "nixos"; module = cfg; ... } ? 17:43:01
@raitobezarius:matrix.orgraitobezarius
In reply to @zhaofeng:zhaofeng.li
There would be a registry attrset with definitions for each target type, and the os attribute can either be a string (in which case it will look up the registry) or an explicit target definition
OK, how do you see the definition for activation ?
17:43:13
@raitobezarius:matrix.orgraitobezariusright now, you can do colmena apply dry-activate, etc.17:43:28
@raitobezarius:matrix.orgraitobezariushow would we translate this in the registry configuration module17:43:37
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @raitobezarius:matrix.org
targets.nixos cfg = { _type = "nixos"; module = cfg; ... } ?
This, which is closer to ma27 's model
17:43:42
@ma27:nicht-so.sexyma27
In reply to @zhaofeng:zhaofeng.li
Interesting, the os key sounds like what I have in mind. I assume eval.nix would inject os for the deployment-wide modules to consume?
not sure if I have done that already (the current draft is very much oriented on what I needed), but it would be trivial.
17:43:54
@raitobezarius:matrix.orgraitobezarius
In reply to @zhaofeng:zhaofeng.li
This, which is closer to ma27 's model
yeah so I agree with this
17:44:06
@raitobezarius:matrix.orgraitobezariusI like this one too17:44:14
@raitobezarius:matrix.orgraitobezariusbecause low level users can do much more with it17:44:19
@raitobezarius:matrix.orgraitobezariusso I gather that colmena upstream would be interested in this sort of features17:44:35
@raitobezarius:matrix.orgraitobezariusso it may make sense just to send PRs towards it (?)17:44:41
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @raitobezarius:matrix.org
OK, how do you see the definition for activation ?
I think a good start would be to just have the activation commands, but it could accept a script with a defined interface
17:46:32
@raitobezarius:matrix.orgraitobezariusyou mean17:46:48
@raitobezarius:matrix.orgraitobezarius registry.nixosSystems.activation.dry-activate = "switch-to-configuration dry-activate"; or something like that? 17:47:06
@zhaofeng:zhaofeng.liZhaofeng Li Yeah, something like that 17:47:22
@raitobezarius:matrix.orgraitobezariusthat makes sense to me17:47:38
23 Feb 2024
@janejasperous:one.ems.hostJane Jasperous left the room.16:35:34
25 Feb 2024
@ftchrist:matrix.orgFrédéric Christ joined the room.10:21:20
@polygon:gaykitty.lolpolygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️ changed their display name from polygon (she/it) ⚡️ to polygon (she/it) - migrating to @polygon:catgirl.cloud ⚡️.22:08:53
26 Feb 2024
@aflox:matrix.orgaflox joined the room.10:34:58
@aflox:matrix.orgaflox Hi everyone 👋
I'm browsing over the colmena documentation coming from nixops and have a question regarding pinning meta.nixpkgs to an initialized attribute set (I'm using flakes) and cross-architecture builds. I'm assuming that simply setting nixpkgs.system on the node is probably not sufficient as the <nixpkgs> set is already initialized, right? What would be the recommended way to handle this ? Have a nodeNixpkgs set for everything that's different from the local system ?
10:38:51
@dantefromhell:matrix.orgdantefromhell
In reply to @aflox:matrix.org
Hi everyone 👋
I'm browsing over the colmena documentation coming from nixops and have a question regarding pinning meta.nixpkgs to an initialized attribute set (I'm using flakes) and cross-architecture builds. I'm assuming that simply setting nixpkgs.system on the node is probably not sufficient as the <nixpkgs> set is already initialized, right? What would be the recommended way to handle this ? Have a nodeNixpkgs set for everything that's different from the local system ?

I'm cross-compiling aarch64 (for a raspberry) on x86-64. it require binfmt to be setup correctly.

other than that i'm setting nixkpgs.system = "aarch64-linux"; in the host declaration, I dont use nodeNixpkgs.
it builds with colmena build

14:13:24
@michaelpj:matrix.orgMichael Peyton Jones changed their display name from michaelpj to Michael Peyton Jones.16:22:02
29 Feb 2024
@wimpress:matrix.org@wimpress:matrix.org joined the room.21:11:05
2 Mar 2024
@ktemkin:katesiria.org@ktemkin:katesiria.org joined the room.08:01:19

Show newer messages


Back to Room ListRoom Version: 6