!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
7 May 2022
@dantefromhell:matrix.orgdantefromhell CRTified: The downside is this woukd only work with raspberrys plus I dont use the SD-Cards (long term reliability) since USB boot is now possible. 10:41:56
@dantefromhell:matrix.orgdantefromhellFrom research it feels possible to get NixOS LIVE booted on all devices (kexec, pxe, usb sticks) so my hope is to build something nix-based from there for installation & management.10:46:14
@schnecfk:ruhr-uni-bochum.deCRTified
In reply to @dantefromhell:matrix.org
CRTified: The downside is this woukd only work with raspberrys plus I dont use the SD-Cards (long term reliability) since USB boot is now possible.
You are free to create arbitrary layouts, so you can dd it on other media, too. I'm using RockPis and boot them from NVMe :) But I get your point, the same thing for x86 might be a bit more effort I think
10:47:07
@dantefromhell:matrix.orgdantefromhellThe first issue I recognized with colmena is the hostname match check for local deploys. That breaks fresh installs and machine renames, no?10:47:21
@dantefromhell:matrix.orgdantefromhell CRTified: the dd approach is also suboptimal with differing disc size. it needs some post-processing... 10:48:47
@schnecfk:ruhr-uni-bochum.deCRTifiedThe aarch64 installer image autoresizes on boot10:49:21
@dantefromhell:matrix.orgdantefromhell CRTified: and stuff like ZFS raidZ might be impossible (would need to test) 10:50:17
@schnecfk:ruhr-uni-bochum.deCRTifiedhttps://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image.nix#L242-L267 here's what's done to expand on boot10:51:01
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @dantefromhell:matrix.org
The first issue I recognized with colmena is the hostname match check for local deploys.
That breaks fresh installs and machine renames, no?
When renaming machines, you can override which node apply-local selects with --node. For fresh installs, you need to run the activation script when chrooted into the new root (ex: the external script I linked) and the normal logic doesn't work.
18:21:34
8 May 2022
@dantefromhell:matrix.orgdantefromhell* yeah I feel there's this recursive dependency on nix all over the nix ecosystem 11:20:53
@dantefromhell:matrix.orgdantefromhell
In reply to @zhaofeng:zhaofeng.li
When renaming machines, you can override which node apply-local selects with --node. For fresh installs, you need to run the activation script when chrooted into the new root (ex: the external script I linked) and the normal logic doesn't work.
Thx for the details. Will check them out ASAP
11:21:57
10 May 2022
@andi:kack.itandi- left the room.18:56:41
13 May 2022
@snartvellental:matrix.orgsnartvellental joined the room.08:02:27
@snartvellental:matrix.orgsnartvellentalhey folks, using colmena with joy, i am using it in CI and was wondering how people cache colmena builds on CI servers?08:03:02
@linus:schreibt.jetztLinux Hackerman snartvellental: you can use a Nix binary cache. Unfortunately there's no stable interface for populating a binary cache currently, but you can put `extra-substituters = file:///path/to/persistent/cache/dir/?trusted=1` in a nix.conf that gets picked up for the build, and use `nix copy --option experimental-features nix-command --all --to file:///path/to/persistent/cache/dir/` at the end of the build 08:07:35
@linus:schreibt.jetztLinux HackermanYou can also use some S3-compatible storage rather than local storage if you prefer08:08:10
@snartvellental:matrix.orgsnartvellental I have played around with cachix in the past, thanks for your message Linux Hackerman , I will have a look :) 08:08:58
@linus:schreibt.jetztLinux HackermanOh yeah you can use cachix too, but I was assuming that local storage without bandwidth restrictions might be preferable08:09:32
@linus:schreibt.jetztLinux HackermanAlso, sooner or later you're probably going to want to clean the storage up. There's currently no good mechanism for this, the easiest way is to just delete everything, but of course that means everything's gone...08:11:35
@snartvellental:matrix.orgsnartvellentalyeah, then most likely one would resort to S3 with proper lifecycle rules in place08:14:19
@snartvellental:matrix.orgsnartvellentalnix copy sounds like a new command, haven't seen that one08:16:20
@linus:schreibt.jetztLinux Hackerman there used to be nix-push, but that was removed in favour of the unstable nix copy interface 🙃 08:36:14
@snartvellental:matrix.orgsnartvellentalwhy is nix such a big ocean lol :D sometimes I feel like i've seen 5% or 0,05%11:23:03
@buckley310:matrix.orgBuckleyBecause nix invites the user to jump into the whole stack and mess around :o13:05:35
@schnecfk:ruhr-uni-bochum.deCRTified Interesting. I'm currently not at home and tried apply-local for the first time to update my laptop. It fails and claims my machine isn't a NixOS machine 🤔 13:48:31
@zhaofeng:zhaofeng.liZhaofeng LiWhich versions of nixpkgs and Colmena? It doesn't look like they changed the format of /etc/os-release again18:59:04
18 May 2022
@janejasperous:one.ems.hostJane Jasperoushi, im configuring my systems using colmente to deploy in my network. I'd like to have some machines running 21.11 others 22.05 other unstable. I get working this for packages, but not for full nixos system (modules,...)12:27:06
@janejasperous:one.ems.hostJane Jasperous * hi, im configuring my systems using colmena to deploy in my network. I'd like to have some machines running 21.11 others 22.05 other unstable. I get working this for packages, but not for full nixos system (modules,...)12:27:13
@janejasperous:one.ems.hostJane Jasperous i expected declare machines as server1 = inputs.nixpkgs-2305.lib.nixosSystem { (...) 12:29:26
@janejasperous:one.ems.hostJane Jasperous * i expected declare machines as server1 = inputs.nixpkgs-2205.lib.nixosSystem { (...) 12:29:35

Show newer messages


Back to Room ListRoom Version: 6