| 31 Dec 2023 |
hexa | npkgs is probably the node nixpkgs? | 01:37:20 |
hexa | let
sources = import ./nix/sources.nix;
defaultSystem = "x86_64-linux";
defaultPkgs = sources."nixos-23.11";
lib = import (defaultPkgs + "/lib");
machines = {
"archive.darmstadt.ccc.de" = {};
"bitwarden.darmstadt.ccc.de" = {};
"md.darmstadt.ccc.de" = {};
"monitoring.darmstadt.ccc.de" = {};
"mx1.darmstadt.ccc.de" = {
system = "aarch64-linux";
};
"proxmox.darmstadt.ccc.de" = {};
"sso1.darmstadt.ccc.de" = {};
"sso2.darmstadt.ccc.de" = {};
"todo.darmstadt.ccc.de" = {};
"wiki.darmstadt.ccc.de" = {};
};
# per machine entrypoint
mkMachine = hostName: {
system ? defaultSystem,
packages ? defaultPkgs,
...
}: {
imports = [
./common.nix
./machines/${hostName}
];
nixpkgs = {
inherit system;
};
};
in
{
meta = {
# https://colmena.cli.rs/unstable/tutorial/index.html#basic-configuration
nixpkgs = import defaultPkgs {};
# Allow overriding package set and system architecture per machine
nodeNixpkgs = lib.mapAttrs (hostName: {
packages ? defaultPkgs,
system ? defaultSystem,
...
}: (import packages { inherit system; }))
machines;
};
}
// lib.mapAttrs mkMachine machines
| 01:37:47 |
hexa | * let
sources = import ./nix/sources.nix;
defaultSystem = "x86_64-linux";
defaultPkgs = sources."nixos-23.11";
lib = import (defaultPkgs + "/lib");
machines = {
"archive.darmstadt.ccc.de" = {};
"bitwarden.darmstadt.ccc.de" = {};
"md.darmstadt.ccc.de" = {};
"monitoring.darmstadt.ccc.de" = {};
"mx1.darmstadt.ccc.de" = {
system = "aarch64-linux";
};
"proxmox.darmstadt.ccc.de" = {};
"sso1.darmstadt.ccc.de" = {};
"sso2.darmstadt.ccc.de" = {};
"todo.darmstadt.ccc.de" = {};
"wiki.darmstadt.ccc.de" = {};
};
# per machine entrypoint
mkMachine = hostName: {
system ? defaultSystem,
packages ? defaultPkgs,
...
}: {
imports = [
./common.nix
./machines/${hostName}
];
nixpkgs = {
inherit system;
};
};
in
{
meta = {
# https://colmena.cli.rs/unstable/tutorial/index.html#basic-configuration
nixpkgs = import defaultPkgs {};
# Allow overriding package set and system architecture per machine
nodeNixpkgs = lib.mapAttrs (hostName: {
packages ? defaultPkgs,
system ? defaultSystem,
...
}: (import packages { inherit system; }))
machines;
};
}
// lib.mapAttrs mkMachine machines
| 01:37:49 |
hexa | this is the hive.nix | 01:37:55 |
raitobezarius | shoudln't this be localSystem ? | 01:46:39 |
raitobezarius | or crossSystem ? | 01:46:42 |
hexa | in L52? | 01:47:03 |
raitobezarius | L36 | 01:47:10 |
raitobezarius | and L52 too | 01:47:14 |
raitobezarius | but I think it works | 01:47:17 |
raitobezarius | localSystem works too for me | 01:47:26 |
raitobezarius | I wonder if it could have an effect to use the system rather than localSystem | 01:47:39 |
raitobezarius | in the rest of the machinery | 01:47:43 |
hexa | I think system is the legacy way probably? | 01:47:56 |
raitobezarius | yep | 01:48:07 |
hexa |
error: assertion '(((args) ? localSystem) -> (! ((args) ? system)))' failed
| 01:48:35 |
hexa | same error with localSystem = system | 01:48:56 |
raitobezarius | ok | 01:49:23 |
hexa | I wonder when that broke tbh 😄 that's a git repo | 01:49:32 |
raitobezarius | can you bisect? | 01:49:43 |
hexa | with colmena pinned etc. | 01:49:48 |
raitobezarius | seems like you can reproduce this with colmena eval | 01:49:53 |
hexa | sure | 01:50:00 |
raitobezarius | colmena eval nodes."archive.darmstadt.ccc.de" | 01:50:10 |
raitobezarius | would probably trigger it more or less | 01:50:14 |
hexa | thread 'main' panicked at 'Could not generate absolute path to expression file.: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/command/eval.rs:71:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
| 01:50:48 |
hexa | yeah, older commits also don't work | 01:51:38 |
hexa | so I don't have a good commit | 01:51:45 |
hexa | i'm beyond confused | 01:52:03 |
raitobezarius | classically I would say "mm, newer nix maybe" | 01:53:03 |