!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
23 Oct 2022
@blaggacao:matrix.orgDavid Arnold (blaggacao) make-mead 21:18:00
@blaggacao:matrix.orgDavid Arnold (blaggacao)

Zhaofeng Li: re https://github.com/NixOS/nix/pull/6530#issuecomment-1288195277

I wonder if there is a possibility to leverage the nix bundler interface instead of making a synthetic wrapper-flake...

But I haven't really dug deep on this, just planning to do this for styx...

22:41:37
31 Oct 2022
@v:meowy.tech@v:meowy.techimage.png
Download image.png
07:54:15
@v:meowy.tech@v:meowy.techrunning into this error when provisioning a new machine, anyone know what could cause this or how to fix it?07:54:36
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @v:meowy.tech
sent an image.
There isn't a username in ssh-ng://your_ip, did you set deployment.targetUser to null? If so, then the default user it connects as (same as your username if you didn't configure anything) isn't trusted by the Nix daemon
09:17:06
@v:meowy.tech@v:meowy.tech
In reply to @zhaofeng:zhaofeng.li
There isn't a username in ssh-ng://your_ip, did you set deployment.targetUser to null? If so, then the default user it connects as (same as your username if you didn't configure anything) isn't trusted by the Nix daemon
ah yeah that's likely it, thanks
09:39:34
2 Nov 2022
@yuu:matrix.orgYuu Yin joined the room.00:49:52
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.nameonce I've transitioned a nixos server onto colmena, what's the correct thing to do with the existing /etc/nixos/configuration.nix file?01:25:46
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.namepresumably that file no longer has any relationship to the actual configuration of the server?01:26:05
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @rendakuenthusiast:imperishable.name
once I've transitioned a nixos server onto colmena, what's the correct thing to do with the existing /etc/nixos/configuration.nix file?
It no longer has any relationship to the actual config and can be deleted. You can also put a fake nixos-rebuild script into systemPackage so you don't accidentally run the actual rebuild on the machine.
01:42:50
@rendakuenthusiast:imperishable.name@rendakuenthusiast:imperishable.name Zhaofeng Li: any guidelines for how to write that fake script? 01:44:51
@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

Show newer messages


Back to Room ListRoom Version: 6