!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
19 Sep 2025
@bl1nk:matrix.orgbl1nk changed their profile picture.15:24:58
20 Sep 2025
@samuel:mnzn.devSamuelThat does not sound like a Colmena issue13:37:52
@glyph:matrix.eno.spacezygohistomorphic glyph joined the room.15:23:17
@glyph:matrix.eno.spacezygohistomorphic glyph Hello! I am trying to migrate my old plain flakes based setup to colmena, but am running into some issues. For my hive, I've set
defaults = { name, nodes, pkgs, ... }: {
  modules = [
    # -- some imports omitted
    agenix.nixosModules.default
    agenix-rekey.nixosModules.default
  ];

  age.rekey = {
    masterIdentities = [ ./secrets/age_id.age ];
    hostPubkey = ./secrets/${name}.pub;
    storageMode = "local";
    localStorageDir = ./. + "/secrets/rekeyed/${name}";
  };
};
this worked fine as part of a node in nixosConfigurations, but when I put this into colmenaHive it fails to recognize age as an option. What am I missing?
15:48:48
@dawnofmidnight:catgirl.cloudwhispers (it/fae)Redacted or Malformed Event16:53:48
@dawnofmidnight:catgirl.cloudwhispers (it/fae)

i'm not familiar with agenix-rekey, but i'm pretty sure the age.rekey part is nixos configuration; i.e. it should be in a nixos module.

defaults = { name, nodes, pkgs, ... }: {
  modules = [
    # -- some imports omitted
    agenix.nixosModules.default
    agenix-rekey.nixosModules.default
    {
      age.rekey = {
        masterIdentities = [ ./secrets/age_id.age ];
        hostPubkey = ./secrets/${name}.pub;
        storageMode = "local";
        localStorageDir = ./. + "/secrets/rekeyed/${name}";
      };
  	}
  ];
};
16:58:07
@dawnofmidnight:catgirl.cloudwhispers (it/fae) *

i'm not familiar with agenix-rekey, but i'm pretty sure the age.rekey part is nixos configuration; i.e. it should be in a nixos module.

defaults = { name, nodes, pkgs, ... }: {
  modules = [
    # -- some imports omitted
    agenix.nixosModules.default
    agenix-rekey.nixosModules.default
    {
      age.rekey = {
        masterIdentities = [ ./secrets/age_id.age ];
        hostPubkey = ./secrets/${name}.pub;
        storageMode = "local";
        localStorageDir = ./. + "/secrets/rekeyed/${name}";
      };
    }
  ];
};
16:58:20
@glyph:matrix.eno.spacezygohistomorphic glyph ah, i see! I was under the impression that defaults itself defines a module 18:22:49
@glyph:matrix.eno.spacezygohistomorphic glyphthanks!18:22:55
@glyph:matrix.eno.spacezygohistomorphic glyph how does the
 defaults = { pkgs, ... }: {
    # This module will be imported by all hosts
    environment.systemPackages = with pkgs; [
      vim wget curl
    ];
};
bit of the tutorial configuration work then?
18:25:25
22 Sep 2025
@felix.schroeter:scs.ems.host@felix.schroeter:scs.ems.host changed their display name from Felix Schröter to Felix Schröter (🌄 29.09. – 05.10.).09:56:26
23 Sep 2025
@sinan:sinanmohd.comsinan changed their profile picture.02:47:54
@a-kenji:matrix.orgkenji changed their display name from a-kenji to kenji.10:39:39
@freexploit:trafkin.com@freexploit:trafkin.com 20:37:08
@freexploit:trafkin.com@freexploit:trafkin.com 20:37:31
@freexploit:trafkin.com@freexploit:trafkin.com left the room.20:38:10
28 Sep 2025
@asoderlind:matrix.orgasoderlind joined the room.12:01:58
@martijn:boers.emailmartijn joined the room.12:50:21
29 Sep 2025
@chris_god:trafkin.comm0lok joined the room.23:11:46
1 Oct 2025
@robheghan:matrix.orgRobin Heggelund Hansen set a profile picture.10:49:40
@robheghan:matrix.orgRobin Heggelund Hansen changed their display name from robheghan to Robin Heggelund Hansen.10:50:07
3 Oct 2025
@sinan:sinanmohd.comsinan changed their profile picture.02:43:04
4 Oct 2025
@aleksana:mozilla.orgaleksana 🏳️‍⚧️ (force me to bed after 18:00 UTC) changed their profile picture.08:41:29
@merrkry:tsubasa.moeMerrkry Hi, I have some question about meta.nixpkgs. What if I have a machine that has different architecture from all other machines? Do I have to specify nodeNixpkgs for it? 17:09:31
@merrkry:tsubasa.moeMerrkry Also, does Colmena set nixpkgs.pkgs? 17:10:05
5 Oct 2025
@neobrain:matrix.orgneobrain joined the room.13:53:48
6 Oct 2025
@alpha-centauri:matrix.orgAlexander Hi there. Thanks for a great tool. I have a question. I need to deploy my nixos configuration to multiple devices. Usually I connect them to my local network and they got some dynamic IP. It is not very convenient to change deployment.targetHost for every new device. It would be nice to have a cli option for this. What do you think about the idea? 20:40:15
7 Oct 2025
@zhaofeng:zhaofeng.liZhaofeng Li You can set nixpkgs.system for that specific node, see https://colmena.cli.rs/unstable/examples/multi-arch.html 02:54:55
@zhaofeng:zhaofeng.liZhaofeng Li I don't think this idea scales well for the common use case of deploying to many nodes at once. You can use mDNS .local hostnames or something like tailscale 02:56:14
@martijn:boers.emailmartijn removed their profile picture.10:54:32

Show newer messages


Back to Room ListRoom Version: 6