!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
8 Aug 2024
@hanleym:matrix.orghanleym builtins.currentSystem? 19:58:03
@dazai:matrix.orgdazaihehe flakes don't have that 19:58:25
@dazai:matrix.orgdazaihttps://github.com/NixOS/nix/issues/384319:58:37
@dazai:matrix.orgdazaithats why flake-utils exists, usually you just define your config inside of an "eachSystem" function and then it will define that config for each system, for example outputs.colmena.systems.x86_64.someSystem then if you tried to run colmena apply --on someSystem on an aarch64 it would complain about someSystem not being defined for the current architecture20:01:53
@dazai:matrix.orgdazaibut it doesn't seem like colmena is set up for that20:02:07
9 Aug 2024
@julienmalka:matrix.org@julienmalka:matrix.org left the room.10:47:30
13 Aug 2024
@niklauzg:matrix.orgNiklauz joined the room.21:55:04
15 Aug 2024
@ser:sergevictor.euser(ial) how can i use imports = [ in host definition? 02:41:06
@ser:sergevictor.euser(ial)error says: error: infinite recursion encountered02:41:42
@hanleym:matrix.orghanleymI'm fairly sure I do this... Do you have a example you can share?14:09:56
@hanleym:matrix.orghanleymIs it possible the thing you are importing is indeed causing infinite recursion?14:10:16
16 Aug 2024
@ser:sergevictor.euser(ial)i'm trying to import nix-bitcoin03:10:21
@ser:sergevictor.euser(ial)
03:18:08
@ser:sergevictor.euser(ial)
      "${nix-bitcoin}/modules/modules.nix"
    ];```
03:18:16
@ser:sergevictor.euser(ial)if it's wrong way in colmena, what is the correct one to manage nix-bitcoin with colmena?03:19:38
17 Aug 2024
@unwary:matrix.orgunwary joined the room.01:34:34
@tollb1:matrix.orgtollb1 joined the room.13:22:38
@polygon:catgirl.cloudUnit 1721344 [polygon] (it/its, es/ihr) changed their profile picture.20:29:36
19 Aug 2024
@shadow-knight101:matrix.orgamidamaru changed their display name from turn-the-light-on to amidamaru.03:10:40
24 Aug 2024
@lychee:wires.cafelychee joined the room.04:25:45
25 Aug 2024
@moira:raccoon.college@moira:raccoon.college changed their profile picture.17:18:11
28 Aug 2024
@cafkafk:gitter.imcafkafk joined the room.16:17:02
@cafkafk:gitter.imcafkafk
In reply to @zhaofeng:zhaofeng.li
Not right now, but I’m considering adding others to help 
If I start reviewing stuff, will things get merged? I see some things I really want in the project, and this is not my first time maintaining a rust project (or a deployment tool, I'm currently a maintainer of morph as well).
16:19:16
29 Aug 2024
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @cafkafk:gitter.im
If I start reviewing stuff, will things get merged? I see some things I really want in the project, and this is not my first time maintaining a rust project (or a deployment tool, I'm currently a maintainer of morph as well).
Planning to do a PR sweep, what are you looking to be merged?
03:37:19
@cafkafk:gitter.imcafkafkI mean #222 seems very obvious (and the comment about flakelock bump), think it's also because I've grown too fond of morph health checks and upcoming pre checks, and I'd probably consider looking into adding those, also even #146 which may just look aesthetic but would be cool to have03:48:07
@cafkafk:gitter.imcafkafkAlso just being sure there's general maintenance on it, versions get bumped, dependencies don't rot, mostly because it would make it more viable for potential dayjob usage03:49:56
1 Sep 2024
@khalil:ksantana.netKhalil Santana joined the room.12:47:46
@khalil:ksantana.netKhalil Santana

Hi, can anyone provide me a full working example of a colmena hive.nix for deploying a single host? Unfortunately, the documentation hasn't been of much help since it doesn't describe which flake to use for a host, etc.

Currently my hive.nix is this:

{
  # description = "A NixOS configuration using Flakes";

  inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; };
  outputs = { self, nixpkgs, ... }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs { inherit system; };
    in {
      # packages.${system} = { default = pkgs.callPackage ./default.nix { }; };
      colmena = {
        meta = {
          nixpkgs = import nixpkgs {
            system = "x86_64-linux";
            overlays = [ ];
          };
        };
        # nixosConfigurations = {
        andromeda = {
          system = "x86_64-linux";
          imports = [ ./hosts/andromeda/andromeda.nix ];
          deployment.targetHost = "andromeda";
        };
        # };
      };
    };
}

Which gives me errors:

[nix-shell:~/Documentos/NixOS]$ : 1725162633:0;colmena apply 
[INFO ] Using configuration: /home/khalil/Documentos/NixOS/hive.nix
[INFO ] Enumerating nodes...
error:
       … while evaluating attribute 'inputs'

         at /nix/store/3m9sp0j8i8032nin10vbfm548q1brlb7-nixos-24.05/nixos/lib/attrsets.nix:984:14:

          983|     value:
          984|     { inherit name value; };
             |              ^
          985|

       … while evaluating the attribute 'config.deployment'

         at /nix/store/3m9sp0j8i8032nin10vbfm548q1brlb7-nixos-24.05/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: The option `nixpkgs.url' does not exist. Definition values:
       - In `/tmp/colmena-assets-l0SXJi/eval.nix': "github:NixOS/nixpkgs/nixos-unstable"
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 1
Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace
12:52:50
@ibizaman:matrix.orgibizaman
In reply to @khalil:ksantana.net

Hi, can anyone provide me a full working example of a colmena hive.nix for deploying a single host? Unfortunately, the documentation hasn't been of much help since it doesn't describe which flake to use for a host, etc.

Currently my hive.nix is this:

{
  # description = "A NixOS configuration using Flakes";

  inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; };
  outputs = { self, nixpkgs, ... }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs { inherit system; };
    in {
      # packages.${system} = { default = pkgs.callPackage ./default.nix { }; };
      colmena = {
        meta = {
          nixpkgs = import nixpkgs {
            system = "x86_64-linux";
            overlays = [ ];
          };
        };
        # nixosConfigurations = {
        andromeda = {
          system = "x86_64-linux";
          imports = [ ./hosts/andromeda/andromeda.nix ];
          deployment.targetHost = "andromeda";
        };
        # };
      };
    };
}

Which gives me errors:

[nix-shell:~/Documentos/NixOS]$ : 1725162633:0;colmena apply 
[INFO ] Using configuration: /home/khalil/Documentos/NixOS/hive.nix
[INFO ] Enumerating nodes...
error:
       … while evaluating attribute 'inputs'

         at /nix/store/3m9sp0j8i8032nin10vbfm548q1brlb7-nixos-24.05/nixos/lib/attrsets.nix:984:14:

          983|     value:
          984|     { inherit name value; };
             |              ^
          985|

       … while evaluating the attribute 'config.deployment'

         at /nix/store/3m9sp0j8i8032nin10vbfm548q1brlb7-nixos-24.05/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: The option `nixpkgs.url' does not exist. Definition values:
       - In `/tmp/colmena-assets-l0SXJi/eval.nix': "github:NixOS/nixpkgs/nixos-unstable"
[ERROR] -----
[ERROR] Operation failed with error: Child process exited with error code: 1
Hint: Backtrace available - Use `RUST_BACKTRACE=1` environment variable to display a backtrace
I never used hive.nix but at first glance your snippet looks more like a flake.nix ?
13:26:52
3 Sep 2024
@mfossen:matrix.orgMitch joined the room.02:03:00

Show newer messages


Back to Room ListRoom Version: 6