| 2 Jan 2022 |
@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 Li | Hmm, this is kind of noisy. Let me disable the commit notifications for now. | 21:25:36 |
| 3 Jan 2022 |
hexa | very odd, I'd expect it to know there would be many url previews | 00:52:31 |
| angerman joined the room. | 06:49:24 |
angerman | is there an example for macOS deployments somewhere? | 07:06:05 |
Zhaofeng 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 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 | Zhaofeng Li: hmm. I'm planing to provision an aarch64-darwin machine from a x86_64-darwin machine. | 07:14:46 |
angerman | Yea, I'm holding it wrong ;-) | 07:14:57 |
angerman | so I should initialize the nixpkgs with the controller system? | 07:15:16 |
Zhaofeng Li | Hmm, there isn't support for nix-darwin at the moment, only NixOS | 07:15:20 |
Zhaofeng Li | In reply to @angerman:matrix.org so I should initialize the nixpkgs with the controller system? controller system? | 07:15:39 |
angerman | Ohh... 😥 | 07:15:46 |
angerman | controller/deployer (whatever we call the machine from which we deploy). | 07:16:11 |
Zhaofeng Li | You should initialize with the target system (x86_64-linux, aarch64-linux, etc). | 07:17:12 |
Zhaofeng 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 | 07:18:37 |
Zhaofeng 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 | Hmm. 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 joined the room. | 22:16:50 |
| * aanderse waves 👋 | 22:18:54 |
| Buckley joined the room. | 22:21:48 |
Buckley | 👋 | 23:42:50 |
| 5 Jan 2022 |
| Reventlov joined the room. | 07:40:54 |
Reventlov | hello there | 07:51:20 |
| necrophcodr joined the room. | 15:54:38 |
necrophcodr | 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 | 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 | Any ideas on how I could debug that? | 15:57:46 |
| andi- joined the room. | 16:12:32 |
Zhaofeng Li | What does your hive.nix look like? | 17:09:20 |