!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
2 Mar 2024
@ktemkin:katesiria.org@ktemkin:katesiria.org changed their display name from ktemkin to Kate Temkin.18:07:13
@dmoonfire:matrix.orgdmoonfire

Anyone ever get stylix working with colmena? I'm having a little trouble with it and getting stuck at:

       error: attribute 'system' missing

       at /nix/store/d9m7m0f528qp4dq5j00gylnas0fb755y-source/flake.nix:93:38:

           92|           (import ./stylix/nixos inputs {
           93|             inherit (self.packages.${pkgs.system}) palette-generator;
             |                                      ^
           94|             base16 = base16.lib args;
       Did you mean one of mystem, systemc, systemd, syntex or systemfd?
22:24:38
@dmoonfire:matrix.orgdmoonfire changed their profile picture.22:25:32
3 Mar 2024
@hexa:lossy.networkhexahah 😄 11:28:40
@hexa:lossy.networkhexaI know that one11:28:41
@hexa:lossy.networkhexa dmoonfire: do you have allowAliases disabled? 11:28:53
@hexa:lossy.networkhexa e.g. in ~/.config.nixpkgs.config.nix 11:29:14
@dmoonfire:matrix.orgdmoonfireI have never heard of that file before. I'll do a `rg` to see.17:57:51
@dmoonfire:matrix.orgdmoonfire Apparently, I had it in one of my checked-in files for the flake. nixpkgs.config.allowAliases = false; 20:08:30
@dmoonfire:matrix.orgdmoonfire hexa: That was it, thank you! 💙 20:25:33
6 Mar 2024
@sammy:cherrykitten.dev@sammy:cherrykitten.dev joined the room.19:05:26
7 Mar 2024
@dretrange:matrix.orgDrEtrange joined the room.14:09:36
10 Mar 2024
@bonus:bonusplay.plBonus joined the room.12:48:17
13 Mar 2024
@ktemkin:katesiria.org@ktemkin:katesiria.org changed their display name from Kate Temkin to [K]ate Temkin.02:56:13
14 Mar 2024
@federicodschonborn:matrix.org@federicodschonborn:matrix.org left the room.02:04:46
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.18:44:59
15 Mar 2024
@pgibson:matrix.orgpgibsonDoes Colmena (or NixOS) support automatic rollback for failed deployments? I had a deploy hang during testing (possible the SSH connection was interrupted) and I had to reboot the server04:02:47
@pgibson:matrix.orgpgibsonSSH was down and I hadn't configured a password to log in via the console04:03:23
@me:indeednotjames.comemilyno, see https://github.com/zhaofengli/colmena/issues/3804:08:18
@pgibson:matrix.orgpgibsonThanks04:09:39
@sammy:cherrykitten.dev@sammy:cherrykitten.devis there a way to build a VM from a colmena node config without duplicating the node config into an extra nixos configuration output (in a flake)?17:23:01
@sammy:cherrykitten.dev@sammy:cherrykitten.devso uh, an equivalent to nixos-rebuild build-vm17:23:54
@grahamc:nixos.org@grahamc:nixos.org joined the room.23:05:21
17 Mar 2024
@tcurdt:matrix.orgtcurdt

I have my hosts setup like this:

    nixosConfigurations = {
      utm = import ./machines/utm.nix {};

I really don't get the example config:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  };
  outputs = { nixpkgs, ... }: {
    colmena = {
      meta = {
        nixpkgs = import nixpkgs {
          system = "x86_64-linux";
          overlays = [];
        };
      };

      host-a = { name, nodes, pkgs, ... }: {
        boot.isContainer = true;
        time.timeZone = nodes.host-b.config.time.timeZone;
      };
      host-b = {
        deployment = {
          targetHost = "somehost.tld";
          targetPort = 1234;
          targetUser = "luser";
        };
        boot.isContainer = true;
        time.timeZone = "America/Los_Angeles";
      };
    };
  };
}

No nixosConfigurations?

00:35:19
@hexa:lossy.networkhexacolmena is a specific output that does not provide nixosConfigurations00:59:12
@hexa:lossy.networkhexabut you can create nixosConfigurations and transform them into colmena outputs00:59:25
@hexa:lossy.networkhexae.g. https://github.com/zhaofengli/colmena/issues/60#issuecomment-104719955100:59:53
@tcurdt:matrix.orgtcurdt

Urgh. That looks quite complicated.
Hoping this would work feels naiv now

      colema = {
        meta = {};
        utm = {
          deployment = {
            targetHost = "192.168.71.3";
            targetUser = "root";
          };
        };
        utm = self.nixosConfigurations.utm // {
          deployment = {
            targetHost = "192.168.71.3";
            targetUser = "root";
          };
        };
      };
01:13:12
@tcurdt:matrix.orgtcurdt *

Urgh. That looks quite complicated.
Hoping this would work feels naiv now

      colema = {
        meta = {};
        utm = self.nixosConfigurations.utm // {
          deployment = {
            targetHost = "192.168.71.3";
            targetUser = "root";
          };
        };
      };
01:16:51
18 Mar 2024
@dmoonfire:matrix.orgdmoonfireI struggle a lot translating those two concepts. Mostly I use a lot if Just file to handle what I couldn't figure out on my own. And trying to get home-manager into colmena took me months to puzzle out.02:23:17

Show newer messages


Back to Room ListRoom Version: 6