!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
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 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
@yuka:yuka.dev@yuka:yuka.devAnd nix-darwin or nixos containers or completely custom targets can set this deployScript option in their nixos module system to override what happens on a deployment16:24:56
@yuka:yuka.dev@yuka:yuka.dev * basically a parallel version of nix run .#nixosConfigurations.xyz.config.system.build.deployScript 16:25:07
@omlet:matrix.org@omlet:matrix.org joined the room.20:34:25
17 Nov 2022
@shapr:cofree.coffeeshapr joined the room.22:14:10
20 Nov 2022
@cw:kernelpanic.cafeChinchilla Washington joined the room.04:41:30
@cw:kernelpanic.cafeChinchilla Washington

Colmena is throwing this error message when I try to deploy a flake:

[ERROR]   stderr)        Failed assertions:
[ERROR]   stderr)        - The ‘fileSystems’ option does not specify your root file system.
[ERROR]   stderr)        - You must set the option ‘boot.loader.grub.devices’ or 'boot.loader.grub.mirroredBoots' to make the system bootable.

But the root filesystem is specified. I tried setting it directly in the colmena block like git shows and it's still complaining

04:51:24
@cw:kernelpanic.cafeChinchilla Washingtonjust switching my flake directly works fine04:52:29
@cw:kernelpanic.cafeChinchilla WashingtonAny ideas?04:52:32
@zhaofeng:zhaofeng.liZhaofeng LiWhat does the config look like?05:34:10

Show newer messages


Back to Room ListRoom Version: 6