!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
18 Aug 2023
@test-user:c.imperishable.namerendakuenthusiast⚡️ joined the room.20:06:14
@test-user:c.imperishable.namerendakuenthusiast⚡️is this matrix room deliberately not in the nix matrix space, or is my client messed up?20:07:15
@sumner:nevarro.space@sumner:nevarro.space
In reply to @test-user:c.imperishable.name
is this matrix room deliberately not in the nix matrix space, or is my client messed up?
are you in #community-rooms:nixos.org ?
20:35:08
@sumner:nevarro.space@sumner:nevarro.space
In reply to @test-user:c.imperishable.name
is this matrix room deliberately not in the nix matrix space, or is my client messed up?
* are you in the #community-rooms:nixos.org subspace ?
20:35:14
19 Aug 2023
@khalilsantana:matrix.org@khalilsantana:matrix.org joined the room.03:03:26
@khalilsantana:matrix.org@khalilsantana:matrix.org left the room.03:03:52
@khalilsantana:matrix.org@khalilsantana:matrix.org joined the room.03:04:13
@khalilsantana:matrix.org@khalilsantana:matrix.org Hi, is there a proper way to get colmena to nixos-rebuild --upgrade multiple hosts? I can use the exec sub-command but AFAIK that will build in every node, which seems wasteful 03:06:51
@whentze:matrix.orgWanja Hentzewait, are you using channels on the hosts?08:30:26
@khalilsantana:matrix.org@khalilsantana:matrix.orgDoesn't all nixos installs use channels? (I'm a newbie, so I just looked up at the manual on how to upgrade nixos and that was one of the ways listed)13:10:05
@whentze:matrix.orgWanja HentzeNo, I've never seen them used with colmena13:16:06
@whentze:matrix.orgWanja Hentzecolmena evaluates the entire configuration not on the hosts but on the deploying machine13:16:40
@whentze:matrix.orgWanja Hentzeyou would usually pin your nixpkgs revision etc. either via flakes or some other mechanism13:17:03
@whentze:matrix.orgWanja HentzeI think it might still work if you use <nixpkgs> somewhere but it would use the channels of the deploying host, not the deployed host13:17:51
@khalilsantana:matrix.org@khalilsantana:matrix.orgI'm not using flakes as of yet, trying to keep it as simple as possible so I can actually understand it13:17:53
@whentze:matrix.orgWanja Hentzeme neither btw13:18:05
@whentze:matrix.orgWanja Hentzewe just have a JSON file with the git revs and such13:18:21
@whentze:matrix.orgWanja Hentzeusing nix-prefetch-git to pin nixpkgs13:18:38
@whentze:matrix.orgWanja Hentzevery low-tech but works perfectly13:18:49
@khalilsantana:matrix.org@khalilsantana:matrix.orghum, understood. Is there a way to at least share built packages between hosts?13:18:56
@khalilsantana:matrix.org@khalilsantana:matrix.orgLike some sort of "host <x> built this and stored it in <central_server>", then "host <y> fetches from <central_server> before building packages"13:20:17
@khalilsantana:matrix.org@khalilsantana:matrix.orgHum, there's a binary cache wiki page13:21:55
@whentze:matrix.orgWanja Hentze
In reply to @khalilsantana:matrix.org
Like some sort of "host built this and stored it in <central_server>", then "host fetches from <central_server> before building packages"
idk I don't use remote builders
16:22:35
@whentze:matrix.orgWanja Hentzeit all builds on the deploying host, not the deployed host16:22:46
@whentze:matrix.orgWanja Hentzewhich is a beefy CI machine in this case16:23:07
@whentze:matrix.orgWanja Hentzemaybe you're confused because you're used to running nixos-rebuild on the hosts16:26:04
@whentze:matrix.orgWanja Hentzecolmena by default builds locally and then pushes to the remote hosts16:26:17
@whentze:matrix.orgWanja Hentzeso in that sense you're automatically sharing built things as long as you're deploying several hosts from the same local host16:26:42
@khalilsantana:matrix.org@khalilsantana:matrix.org But I mean, say if I add some new package to my config.nix, that will be built locally (deployment machine) and then the artefacts copied to the remote targets. But can I somehow fetch whatever package upgrades needed for existing hosts, build them once and share them across hosts using colmena (I seems like no?) 19:16:04
@whentze:matrix.orgWanja Hentze(I don't understand the question but maybe somebody else does)19:21:37

Show newer messages


Back to Room ListRoom Version: 6