!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

Load older messages


SenderMessageTime
16 Feb 2024
@hexa:lossy.networkhexathis is such great fun14:15:57
@hexa:lossy.networkhexaalright14:17:14
@hexa:lossy.networkhexa .config/nixpkgs/config.nix 14:17:22
@hexa:lossy.networkhexa and allowAliases = false 14:17:31
@hexa:lossy.networkhexawhat vies14:17:39
@hexa:lossy.networkhexa * what gives14:17:41
@hexa:lossy.networkhexaanyway I think the error we were seeing was a red herring14:19:08
@raitobezarius:matrix.orgraitobezariusah fuck14:19:47
@hexa:lossy.networkhexa
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:matrix.orgraitobezariusi was so close with my .config/nix/ idea14:19:51
@raitobezarius:matrix.orgraitobezariusjust I don't do this sort of shit14:19:57
@hexa:lossy.networkhexakilling aliases is good shit14:20:05
@hexa:lossy.networkhexabut what alias am I using?14:20:12
@raitobezarius:matrix.orgraitobezariuslegacy system 14:20:28
@raitobezarius:matrix.orgraitobezariusinstead of localSystem or crossSystem I'd assume14:20:38
@raitobezarius:matrix.orgraitobezariusat this point, this looks like kinda a bug in colmena14:20:52
@raitobezarius:matrix.orgraitobezariusmaybe half half colmena nixpkgs14:20:59
@hexa:lossy.networkhexahuh, could be14:21:01
@raitobezarius:matrix.orgraitobezariusbut why would it break randomly14:21:05
@hexa:lossy.networkhexaand like that 😄 14:21:12
@hexa:lossy.networkhexa fails with localSystem = system the same 🙂 14:21:47
@raitobezarius:matrix.orgraitobezariusat this point, you want to confirm one thing14:24:17
@raitobezarius:matrix.orgraitobezariuscan you evaluate your system toplevel without colmena?14:24:23
@raitobezarius:matrix.orgraitobezarius 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:lossy.networkhexadeployment.keys14:26:48
@hexa:lossy.networkhexaagenix soon-ish14:26:59
@raitobezarius:matrix.orgraitobezariusyou can inject colmena specific modules too in that list14:28:00
@raitobezarius:matrix.orgraitobezariusand that will fix the thing14:28:03
@raitobezarius:matrix.orgraitobezariushere's an example on how I do it with flake:14:28:08
@raitobezarius:matrix.orgraitobezariushttps://git.newtype.fr/newtype/newtype-org-configurations/src/branch/main/configurations.nix#L19-L2114:28:38

Show newer messages


Back to Room ListRoom Version: 6