!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
2 Jan 2022
@github:maunium.net@github:maunium.net [zhaofengli/colmena] github-actions[bot] pushed 1 commit to gh-pages:
  • ac475ba7 Deploying to gh-pages from @ zhaofengli/colmena@7b05558008fd75cb19b1be32… by zhaofengli
21:23:53
@zhaofeng:zhaofeng.liZhaofeng LiHmm, this is kind of noisy. Let me disable the commit notifications for now.21:25:36
3 Jan 2022
@hexa:lossy.networkhexavery odd, I'd expect it to know there would be many url previews00:52:31
@angerman:matrix.organgerman joined the room.06:49:24
@angerman:matrix.organgermanis there an example for macOS deployments somewhere?07:06:05
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @angerman:matrix.org
is there an example for macOS deployments somewhere?
It should work if you either pass a nixpkgs initialized with { system = "x86_64-linux"; } or set nixpkgs.system = "x86_64-linux"; in the node config.
07:13:07
@zhaofeng:zhaofeng.liZhaofeng Li

Something like:

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

      defaults = {
        deployment.buildOnTarget = true;
      };

      node-a = {
        deployment.targetHost = "xxx";
        # rest of config
      };
    };
  };
}
07:14:10
@angerman:matrix.organgerman Zhaofeng Li: hmm. I'm planing to provision an aarch64-darwin machine from a x86_64-darwin machine. 07:14:46
@angerman:matrix.organgermanYea, I'm holding it wrong ;-) 07:14:57
@angerman:matrix.organgermanso I should initialize the nixpkgs with the controller system?07:15:16
@zhaofeng:zhaofeng.liZhaofeng LiHmm, there isn't support for nix-darwin at the moment, only NixOS07:15:20
@zhaofeng:zhaofeng.liZhaofeng Li
In reply to @angerman:matrix.org
so I should initialize the nixpkgs with the controller system?
controller system?
07:15:39
@angerman:matrix.organgermanOhh... 😥07:15:46
@angerman:matrix.organgermancontroller/deployer (whatever we call the machine from which we deploy).07:16:11
@zhaofeng:zhaofeng.liZhaofeng LiYou should initialize with the target system (x86_64-linux, aarch64-linux, etc).07:17:12
@zhaofeng:zhaofeng.liZhaofeng LiCurrently you can use the remote build feature to deploy from macOS to NixOS, but not to macOS. It should be fairly easy to add, however, since the semantics are similar07:18:37
@zhaofeng:zhaofeng.liZhaofeng Li * Currently you can use the remote build feature to deploy from macOS to NixOS, but not to macOS. It should be fairly easy to add, however, since the semantics are similar (with nix-darwin)07:19:07
@angerman:matrix.organgermanHmm. Yea, I've got a variety of {x86_64,aarch64}-{linux,macos} systems in my deployment. macos for now requires ssh'ing into the machine, updagint the nix configuration and running darwin rebuild.07:24:37
4 Jan 2022
@aanderse:nixos.devaanderse joined the room.22:16:50
* @aanderse:nixos.devaanderse waves 👋22:18:54
@buckley310:matrix.orgBuckley joined the room.22:21:48
@buckley310:matrix.orgBuckley👋23:42:50
5 Jan 2022
@rgrunbla:matrix.orgReventlov joined the room.07:40:54
@rgrunbla:matrix.orgReventlovhello there07:51:20
@necrophcodr:matrix.orgnecrophcodr joined the room.15:54:38
@necrophcodr:matrix.orgnecrophcodr

I'm getting the following error on a simple deployment at the moment:

-> % colmena apply
[INFO ] Enumerating nodes...
error: infinite recursion encountered

       at /nix/store/y41rr1klzvwrmjs6smyl8kd1ipa5m5kj-source/lib/modules.nix:305:28:

          304|         builtins.addErrorContext (context name)
          305|           (args.${name} or config._module.args.${name})
             |                            ^
          306|       ) (lib.functionArgs f);
(use '--show-trace' to show detailed location information)
[ERROR] -----
[ERROR] Operation failed with error: Nix exited with error code: 1
15:55:24
@necrophcodr:matrix.orgnecrophcodr

NixOS config is

{ config, lib, pkgs, modulesPath, home-manager, ... }:
{
  deployment = {
    targetHost = "192.168.x.y";
    targetUser = "nixos";
    tags = [ "rpi" "lab" ];
  };

  imports = [
    (home-manager + "/nixos")
  ];
}
15:55:50
@necrophcodr:matrix.orgnecrophcodrAny ideas on how I could debug that?15:57:46
@andi:kack.itandi- joined the room.16:12:32
@zhaofeng:zhaofeng.liZhaofeng LiWhat does your hive.nix look like?17:09:20

Show newer messages


Back to Room ListRoom Version: 6