!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
18 Nov 2024
@ibizaman:matrix.orgibizaman
In reply to @jh-devv:matrix.org
Does this support iPXE?
Ah no I didn’t do that in my template. But it’s definitely doable. I found a few links though https://wiki.nixos.org/wiki/Netboot and https://carlosvaz.com/posts/ipxe-booting-with-nixos/
09:33:34
@ibizaman:matrix.orgibizaman
In reply to @luna:bddvlpr.com
{
  self,
  inputs,
  ...
}: let
  inherit (self) outputs;
  inherit (builtins) mapAttrs;
in {
  flake = {
    colmena =
      (mapAttrs (host: value: {
          deployment = {
            targetHost = "${host}.cloud.bddvlpr.com";
          };
        })
        outputs.nixosConfigurations)
      // {
        meta = {
          nixpkgs = import inputs.nixpkgs {
            system = "x86_64-linux";
            overlays = [];
          };
        };
      };

    colmenaHive = inputs.colmena.lib.makeHive outputs.colmena;
  };
}
This is the current configuration, btw.
I’m maybe misreading, did you leave out the configuration for the host you’re trying the build the config for?
09:36:43
@luna:bddvlpr.comLuna No, I think I get what I'm doing wrong now. I thought that it just required outputs.colmena to get the deployment settings and would actually look up the host at outputs.nixosConfigurations like deploy-rs would. I'll try just merging them now. 09:37:45
@ibizaman:matrix.orgibizaman
In reply to @luna:bddvlpr.com
No, I think I get what I'm doing wrong now. I thought that it just required outputs.colmena to get the deployment settings and would actually look up the host at outputs.nixosConfigurations like deploy-rs would. I'll try just merging them now.
Ah I see indeed that seems like the likely culprit.
09:38:17
@luna:bddvlpr.comLunaAs for the meta nixpkgs, does this have to be a set architecture?09:39:03
@luna:bddvlpr.comLunaCan't it be dynamic depending on the host running commands?09:39:16
@ibizaman:matrix.orgibizaman
In reply to @luna:bddvlpr.com
Can't it be dynamic depending on the host running commands?
Dynamic, not sure. But you can use https://colmena.cli.rs/unstable/reference/meta.html#nodenixpkgs for node specific nixpkgs. There’s an example here https://colmena.cli.rs/unstable/tutorial/index.html
09:57:42
@luna:bddvlpr.comLunaFinally got it evaluating with https://github.com/zhaofengli/colmena/issues/60#issuecomment-1510496861. I still don't get the use of meta.nixpkgs in particular though.10:01:02
@luna:bddvlpr.comLuna Another small note, can I define --experimental-flake-eval somewhere in the config that I don't have to add it to every command? 10:01:59
@ibizaman:matrix.orgibizaman
In reply to @luna:bddvlpr.com
Another small note, can I define --experimental-flake-eval somewhere in the config that I don't have to add it to every command?
I don’t think you can add it in the config of this flake.nix, but you can set it permanently by following examples here https://wiki.nixos.org/wiki/Flakes
10:04:47
@luna:bddvlpr.comLuna I don't see how that wiki has information on how to set that permanently. I'm not talking about Nix's --experimental-features 'flakes', colmena's experimental flake eval requires its own --experimental-flake-eval. 10:07:08
@ibizaman:matrix.orgibizamanOh. I never used that 🤔 I enabled it like the wiki suggested and I never needed that command10:15:04
@ibizaman:matrix.orgibizaman * 10:15:16
19 Nov 2024
@garionion:entr0py.de@garionion:entr0py.de left the room.10:58:23
21 Nov 2024
@ftchrist:matrix.orgFrédéric Christ joined the room.05:14:08
@howlymowly:matrix.orgThomas m joined the room.22:15:59
25 Nov 2024
@nullcube:matrix.org@nullcube:matrix.org joined the room.10:04:26
28 Nov 2024
@madonius:entropia.de/madonius[er|he]is it new that a file has to be fully check in for colmena to build the derivation?21:24:56
@hexa:lossy.networkhexathat sounds like you switched to flakes21:29:59
@madonius:entropia.de/madonius[er|he]I was using flakes the whole time, but with the 24.05 I had no issues with the files just being tracked by git21:33:47
@madonius:entropia.de/madonius[er|he]now I have to fully commit them in order for them to get built21:34:01
@madonius:entropia.de/madonius[er|he] I asked over at #users:nixos.org and they said that that should not be the case and to ask here 21:35:08
@madonius:entropia.de/madonius[er|he]🤷21:35:11
@davsanchez_:matrix.orgDavid Sánchez

I think it’s this issue that has been fixed, but I think a new version of colmena including it hasn’t been released yet

https://github.com/zhaofengli/colmena/issues/202

23:01:45
29 Nov 2024
@bl1nk:matrix.orgbl1nk changed their profile picture.01:11:40
@bl1nk:matrix.orgbl1nk changed their profile picture.01:11:57
@khalil:ksantana.netKhalil Santana changed their display name from khalil to Khalil Santana.12:21:11
@madonius:entropia.de/madonius[er|he]ah thanks :)15:40:07
@madonius:entropia.de/madonius[er|he]I mean it's not too shabby to be forced to check in you changes :D15:40:22
8 Dec 2024
@mannp:mannuk.rocksmannp joined the room.18:51:48

Show newer messages


Back to Room ListRoom Version: 6