!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
3 Jun 2022
@tpw_rules:matrix.orgtpw_ruleswhat do you do if you need to reformat the machine? just update the config's uuids?03:53:43
@buckley310:matrix.orgBuckleyyep03:53:51
@tpw_rules:matrix.orgtpw_rulessimple enough03:53:58
@buckley310:matrix.orgBuckleyif you dont like either one of those, partlabels also exist03:54:02
@tpw_rules:matrix.orgtpw_rulesthat is true03:54:27
@buckley310:matrix.orgBuckley also, /dev/disk/by-id/ stays consistent across reinstalls 03:54:46
@tpw_rules:matrix.orgtpw_rulesalso, it looks like colmena just wraps nix command line tools, there's no API or database munging03:55:01
@buckley310:matrix.orgBuckleyno database, right03:55:41
@buckley310:matrix.orgBuckleyand yeah it just sort of sits on top of the existing nix toolset03:56:27
@tpw_rules:matrix.orgtpw_ruleswhat does colmena mean by "hive"?03:56:59
@buckley310:matrix.orgBuckley a hive is a large config containing all your server configs 03:57:24
@buckley310:matrix.orgBuckleyit can just be a single file that imports a bunch of individual server configs if that's what you like03:57:46
@buckley310:matrix.orgBuckleyi actually have a flake with my hosts configured in the standard flakes way, and then a couple very small shims that connect that to colmena03:58:24
@tpw_rules:matrix.orgtpw_rulesahh i see03:58:30
@tpw_rules:matrix.orgtpw_rulesit looks like colmena has a custom flakes output name, is that kosher-ish?03:58:42
@buckley310:matrix.orgBuckley like how nix flake check says that colmena is an unknown output? 03:59:51
@tpw_rules:matrix.orgtpw_rulesi guess04:00:25
@buckley310:matrix.orgBuckleyyou can have non-standard flake outputs, and that's fine, as long as they don't collide with any official output names in the future04:01:19
@buckley310:matrix.orgBuckley i doubt the official spec will ever define a colmena output, so its good by me 04:01:50
@buckley310:matrix.orgBuckley * i doubt the official flake spec will ever define a colmena output, so its good by me 04:01:59
@buckley310:matrix.orgBuckley the nixpkgs repo actually has a lib output which is not an official nix standard 04:02:26
@tpw_rules:matrix.orgtpw_rulesah ok04:05:43
@tpw_rules:matrix.orgtpw_rulesis it possible to separate a nixos machine's hostname from the thing you use in nixosConfigurations and the name of the store path?04:05:53
@tpw_rules:matrix.orgtpw_rules seems to be what system.name and system.nixos.label configuration options are for 04:13:41
@buckley310:matrix.orgBuckleynot sure, hasnt really come up04:15:28
@buckley310:matrix.orgBuckleyoutside of colmena, i believe networking.hostName sets the machine name, and you can set the nixosConfigurations.<xyz> to whatever you want04:17:09
@tpw_rules:matrix.orgtpw_rulesi guess it wouldn't in a network use case04:17:12
@tpw_rules:matrix.orgtpw_rulesthanks for the info though04:19:20
@linus:schreibt.jetzt@linus:schreibt.jetztLast I checked, colmena didn't actually set the host name and forgetting it resulted in all my hosts being called nixos x)07:28:54
@dantefromhell:matrix.orgdantefromhell
In reply to @buckley310:matrix.org
also, /dev/disk/by-id/ stays consistent across reinstalls

if you can use GPT partition table you can label each partition.
that allows me to generalize the nix expressions for partitions.

still working on automation of the partitioning itself.

11:19:41

Show newer messages


Back to Room ListRoom Version: 6