!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

You have reached the beginning of time (for this room).


SenderMessageTime
2 Nov 2022
@zhaofeng:zhaofeng.liZhaofeng Li

It can be something like

(pkgs.writeShellScriptBin "nixos-rebuild" ''
  >&2 echo "This machine is managed by Colmena."
  exit 1
'')

(you may need to tweak its meta.priority otherwise it can conflict with the original one)

01:47:02
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namedo you do this yourself?02:13:19
@zhaofeng:zhaofeng.liZhaofeng LiNo, I don't but my newer nodes don't even have /etc/nixos anymore since I complete the initial installation remotely from Colmena as well.02:15:38
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameoh how does that work?02:15:50
@zhaofeng:zhaofeng.liZhaofeng LiI use this script: https://gist.github.com/zhaofengli/e986fa7688d6c16872b86c6ae6215c9b02:16:38
@zhaofeng:zhaofeng.liZhaofeng Li(more info: https://github.com/zhaofengli/colmena/issues/42#issuecomment-1004528027)02:16:49
@whentze:matrix.orgWanja Hentze

rendakuenthusiast: I have the following in a module imported by every host in the hive:

    environment.etc."nixos/configuration.nix".text = ''
      throw '''
        This machine is not managed by nixos-rebuild, but by colmena.
      '''
    '';
08:48:03
@blaggacao:matrix.orgDavid Arnold (blaggacao)I've been tinkering around with a module that would expose a live usb on mdns or a foxe IP618:23:27
@blaggacao:matrix.orgDavid Arnold (blaggacao)https://github.com/divnix/hive/blob/main/comb/_QUEEN/nixosProfiles.nix#L33-L5318:24:15
@blaggacao:matrix.orgDavid Arnold (blaggacao) Need to test this again with colmena and the current setup this weekend. Maybe there's a nice way to get this integrated with partnix. Kind of to not be able to "forget" how partitioning was done over the time spans involved. 18:25:33
@blaggacao:matrix.orgDavid Arnold (blaggacao)* I've been tinkering around with a module that would expose a live usb on mdns or a fixed IP618:25:51
3 Nov 2022
@ronixx:matrix.orgroshan | byteio.in 🌷 changed their display name from ronixx to 🙃.08:55:22
@ronixx:matrix.orgroshan | byteio.in 🌷 changed their display name from 🙃 to nixie 😎.08:56:36
@ronixx:matrix.orgroshan | byteio.in 🌷 changed their display name from nixie 😎 to nixie 🤓.08:56:54
@ronixx:matrix.orgroshan | byteio.in 🌷 set a profile picture.08:57:29
5 Nov 2022
@sg-qwt:nltrix.net@sg-qwt:nltrix.net joined the room.09:58:39
@blaggacao:matrix.orgDavid Arnold (blaggacao)Somebody around here capapble of helping with https://github.com/nix-community/disko/issues/44#issuecomment-1304634390 ?20:26:46
@blaggacao:matrix.orgDavid Arnold (blaggacao) * Somebody around here capable of helping with https://github.com/nix-community/disko/issues/44#issuecomment-1304634390 ?20:26:55
@blaggacao:matrix.orgDavid Arnold (blaggacao)Yeah! https://crates.io/crates/writedisk21:11:04
@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

Show newer messages


Back to Room ListRoom Version: 6