| 16 Feb 2024 |
hexa | this is such great fun | 14:15:57 |
hexa | alright | 14:17:14 |
hexa | .config/nixpkgs/config.nix | 14:17:22 |
hexa | and allowAliases = false | 14:17:31 |
hexa | what vies | 14:17:39 |
hexa | * what gives | 14:17:41 |
hexa | anyway I think the error we were seeing was a red herring | 14:19:08 |
raitobezarius | ah fuck | 14:19:47 |
hexa | error:
… while evaluating attribute 'sso2.darmstadt.ccc.de'
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:560:14:
559| value:
560| { inherit name value; };
| ^
561|
… while calling anonymous lambda
at /run/user/1000/colmena-assets-le334v/eval.nix:188:39:
187| toplevel = lib.mapAttrs (_: v: v.config.system.build.toplevel) nodes;
188| deploymentConfig = lib.mapAttrs (_: v: v.config.deployment) nodes;
| ^
189| deploymentConfigSelected = names: lib.filterAttrs (name: _: elem name names) deploymentConfig;
… while calling 'g'
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:701:19:
700| g =
701| name: value:
| ^
702| if isAttrs value && cond value
… from call site
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/attrsets.nix:704:20:
703| then recurse (path ++ [name]) value
704| else f (path ++ [name]) value;
| ^
705| in mapAttrs g;
… while calling anonymous lambda
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:242:72:
241| # For definitions that have an associated option
242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
243|
… while evaluating the option `_module.freeformType':
… while calling anonymous lambda
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:538:19:
537| mergeModules' prefix modules
538| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
| ^
539|
… from call site
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:538:73:
537| mergeModules' prefix modules
538| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules);
| ^
539|
… while calling 'pushDownProperties'
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/modules.nix:874:24:
873| */
874| pushDownProperties = cfg:
| ^
875| if cfg._type or "" == "merge" then
… from call site
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/nixos/lib/eval-config.nix:50:8:
49| config = lib.mkMerge (
50| (optional (system != null) {
| ^
51| # Explicit `nixpkgs.system` or `nixpkgs.localSystem` should override
… while calling 'optional'
at /nix/store/k766s621xxdvsfxy46rjxfnb4bqb9glj-nixos-23.11-src/lib/lists.nix:359:20:
358| */
359| optional = cond: elem: if cond then [elem] else [];
| ^
360|
error: attribute 'system' missing
at /run/user/1000/colmena-assets-le334v/eval.nix:143:18:
142| };
143| in evalConfig {
| ^
144| inherit (npkgs) system;
Did you mean one of mystem, systemc, systemd, syntex or systemfd?
| 14:19:49 |
raitobezarius | i was so close with my .config/nix/ idea | 14:19:51 |
raitobezarius | just I don't do this sort of shit | 14:19:57 |
hexa | killing aliases is good shit | 14:20:05 |
hexa | but what alias am I using? | 14:20:12 |
raitobezarius | legacy system | 14:20:28 |
raitobezarius | instead of localSystem or crossSystem I'd assume | 14:20:38 |
raitobezarius | at this point, this looks like kinda a bug in colmena | 14:20:52 |
raitobezarius | maybe half half colmena nixpkgs | 14:20:59 |
hexa | huh, could be | 14:21:01 |
raitobezarius | but why would it break randomly | 14:21:05 |
hexa | and like that 😄 | 14:21:12 |
hexa | fails with localSystem = system the same 🙂 | 14:21:47 |
raitobezarius | at this point, you want to confirm one thing | 14:24:17 |
raitobezarius | can you evaluate your system toplevel without colmena? | 14:24:23 |
raitobezarius | as long as you are not using colmena specific nixos modules, you can just do pkgs.nixos [ (import ./machines/configuration.nix) ] | 14:24:58 |
hexa | deployment.keys | 14:26:48 |
hexa | agenix soon-ish | 14:26:59 |
raitobezarius | you can inject colmena specific modules too in that list | 14:28:00 |
raitobezarius | and that will fix the thing | 14:28:03 |
raitobezarius | here's an example on how I do it with flake: | 14:28:08 |
raitobezarius | https://git.newtype.fr/newtype/newtype-org-configurations/src/branch/main/configurations.nix#L19-L21 | 14:28:38 |