!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
5 Nov 2022
@blaggacao:matrix.orgDavid Arnold (blaggacao)^^ this makes a CLI driven workflow to get your USB ready a tiny bit less cumbersome...21:11:44
@blaggacao:matrix.orgDavid Arnold (blaggacao)How often do you do that? And when you do, do you remember all the command to reliably select the right device, etc? I think that tool comes in really handy...21:12:21
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Pretty cool:

hive on  main [?]
❯ writedisk ./result/iso/bootstrap-hive-from-queen-22.05pre-git-x86_64-linux.isonixos.iso
0: [/dev/sda] SanDisk Firebird USB Flash Drive 4C532000040120104094
select device: 0
sudo /nix/store/pch7dynd4qwbn005xipsb80l9i3a2m3w-writedisk-1.3.0/bin/wd_copier ./result/iso/bootstrap-hive-from-queen-22.05pre-git-x86_64-linux.isonixos.iso /dev/sda
[sudo] password for blaggacao:
copying... (1/2)                                  [=================-----------------------------------]  34%
21:17:34
@blaggacao:matrix.orgDavid Arnold (blaggacao)
hive on  main [!+?] took 21s
❯ build-larva
Boostrap image is building ...
warning: Git tree '/home/blaggacao/src/github.com/divnix/hive' is dirty
warning: Using saved setting for 'extra-substituters = ' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = ' from ~/.local/share/nix/trusted-settings.json.
Boostrap image build finished.
-------
You can now burn it to a USB with the following command:
writedisk ./result/iso/bootstrap-hive-from-queen-22.05pre-git-x86_64-linux.isonixos.iso
21:38:14
@blaggacao:matrix.orgDavid Arnold (blaggacao) Also found a potentially nicer way to configure wifi on a new host on the command line:
https://discourse.nixos.org/t/better-wifi-ux-on-the-non-graphical-installer/23030
23:03:56
6 Nov 2022
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The parted script can be currently created with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nices 😃

08:53:57
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The parted script can be currently created with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix -m [mount|create]

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nices 😃

08:54:56
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The parted script can be currently run with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix -m [mount|create]

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nices 😃

08:55:12
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The crate and/or mount script can be currently run with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix -m [mount|create]

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nices 😃

08:55:42
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The crate and/or mount script can be currently run with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix -m [mount|create]

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nicer 😃

08:55:58
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Zhaofeng Li: I think there is an opportunity (soonish) to incorporate disko into your install.sh:

https://github.com/divnix/hive/blob/73b486d8d2b5545c6b0bb250324f060afeed6448/comb/lina2358/hardwareProfiles.nix#L4-L6

The create and/or mount script can be currently run with:

nix run github:blaggacao/disko/modules --no-write-lock-file -- -f github:divnix/hive?ref=green/lina comb/lina2358/hardwareProfiles/lavinox/disko-config.nix -m [mount|create]

Just wanted to report on the current status, fysa. Upstream is working on the module branch and things should stabilize soon and look nicer 😃

08:56:13
@plg:matrix.orgmel (they/them) joined the room.17:29:01
7 Nov 2022
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP)
02:02:53
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix

  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)

  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix

  • Which prototypes disko's new NixOS module and CLI (still very WIP)

  • Colmena & Nixos & Home Manager things are "harvested" for compatibility onto the top level flake -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105

02:04:01
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
02:04:18
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface)
02:05:45
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface on its own)
02:05:57
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP, both: upstream and adaption)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface on its own)
02:06:49
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP, both: upstream and adaption)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake (whereby they are filtered for their "actual" system and all others are discarded) -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface on its own)
02:07:29
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP, both: upstream and adaption)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake (whereby they are filtered for their "actual" system and all others are discarded) -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface on its own)
  • https://crates.io/crates/writedisk is written in rust and could be made cheaply a sub-command of colmena (to cover the complete deployment cycle ootb)
02:09:18
@blaggacao:matrix.orgDavid Arnold (blaggacao) *

Resume (from my adventure):

  • ColmenaConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/colmenaConfigurations.nix
  • Imports NixosConfig -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/nixosConfigurations.nix (satifies nixos-generator CLI fwiw)
  • Imports HardwareProfile -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/comb/lina2358/hardwareProfiles.nix
  • Which prototypes disko's new NixOS module and CLI (still very WIP, both: upstream and adaption)
  • Colmena & Nixos & Home Manager things are "harvested" for (tooling) compatibility onto the top level flake (whereby they are filtered for their "actual" system and all others are discarded) -> https://github.com/divnix/hive/blob/7b307ca811bd743c6cc435ca19c94e5ecfc98e91/flake.nix#L80-L105
  • Otherwise initially deployed with -> https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b (until it booted into the graphical iface on its own)
  • https://crates.io/crates/writedisk is written in rust and could be made cheaply a sub-command of colmena (to cover the complete deployment cycle ootb: incl. flashing the USB)
02:10:01
10 Nov 2022
@plg:matrix.orgmel (they/them) Hi, I'm trying to convert a set of configs in a flake that all use lib.nixosSystem. I'd like to do them one by one, and keep outputs.nixosConfigurations as is for a bit.
Is it possible to use the result of nixosSystem with colmena?
16:05:40
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @plg:matrix.org
Hi, I'm trying to convert a set of configs in a flake that all use lib.nixosSystem. I'd like to do them one by one, and keep outputs.nixosConfigurations as is for a bit.
Is it possible to use the result of nixosSystem with colmena?
There's an adapter in https://github.com/zhaofengli/colmena/issues/60
20:02:21
@plg:matrix.orgmel (they/them)Thanks, somehow missed that!20:07:31
12 Nov 2022
@aanderse:nixos.devaanderse am i missing some easy way to get output from colmena exec? might be nice if there were a --json flag that returns the output from each machine after being run... or some sort of way to get output easily 18:33:14
@zhaofeng:zhaofeng.liZhaofeng Li Currently there's no clean way. You could use -v and strip out the prefixes but the output format isn't considered stable. I agree that a --json output (either streaming or one JSON at the end) would be a nice thing to have. 21:46:16
16 Nov 2022
@yuka:yuka.dev@yuka:yuka.devthere were multiple efforts to support non-NixOS targets16:23:31
@yuka:yuka.dev@yuka:yuka.devI would really support it if the actual deployment commands/logic for NixOS and non-NixOS was just part of a NixOS module system thing16:23:57
@yuka:yuka.dev@yuka:yuka.devSo that the cli is a dumb task runner16:24:04
@yuka:yuka.dev@yuka:yuka.dev basically a parallel version of nix run .#nixosConfigurations.xyz.config.system.build.deployScript 16:24:27

Show newer messages


Back to Room ListRoom Version: 6