!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

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

You have reached the beginning of time (for this room).


SenderMessageTime
23 Oct 2022
@blaggacao:matrix.org@blaggacao:matrix.orgOr maybe you mean something else than what I understood?15:55:43
@blaggacao:matrix.org@blaggacao:matrix.org

In the unlikely event that somebody is keen on helping with an infinite recursion, here are the neuralgic points of the trace:

       at /nix/store/gv1gp6l2gqgf7j6fpswbcdsr6yi395xy-source/make-honey.nix:123:34:

          122|               (l.mapAttrs (machine: checkAndTransformConfig user machine))
          123|               (l.filterAttrs (_: config: config.nixpkgs.system == system))
             |                                  ^
          124|               (l.mapAttrs (machine: l.nameValuePair "${user}-o-${machine}"))
[...]

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:751:121:

          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;
          751|         in throw "A definition for option `${showOption loc}' is not of type `${type.description}'. Definition values:${showDefs allInvalid}"
             |                                                                                                                         ^
          752|       else

       … while evaluating the attribute 'mergedValue'
[ ... ]

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/options.nix:342:10:

          341|       prettyEval = builtins.tryEval
          342|         (lib.generators.toPretty { }
             |          ^
          343|           (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value));

       … while evaluating anonymous lambda

[ ... ]

error: attribute 'pkgs' missing

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:467:28:

          466|         builtins.addErrorContext (context name)
          467|           (args.${name} or config._module.args.${name})
             |                            ^
          468|       ) (lib.functionArgs f);

       … while evaluating the module argument `pkgs' in "/nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/nixos/modules/profiles/installation-device.nix":

       … while evaluating anonymous lambda

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:465:44:

          464|       context = name: ''while evaluating the module argument `${name}' in "${key}":'';
          465|       extraArgs = builtins.mapAttrs (name: _:
             |                                            ^
          466|         builtins.addErrorContext (context name)

       … from call site

       … while evaluating 'id'

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/trivial.nix:14:5:

           13|     # The value to return
           14|     x: x;
             |     ^
           15|

       … from call site

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/generators.nix:272:47:

          271|           let
          272|             evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
             |                                               ^
          273|           in

       … while evaluating anonymous lambda
16:11:28
@blaggacao:matrix.org@blaggacao:matrix.org *

In the unlikely event that somebody is keen on helping with an infinite recursion, here are the neuralgic points of the trace (in reverse order):

       at /nix/store/gv1gp6l2gqgf7j6fpswbcdsr6yi395xy-source/make-honey.nix:123:34:

          122|               (l.mapAttrs (machine: checkAndTransformConfig user machine))
          123|               (l.filterAttrs (_: config: config.nixpkgs.system == system))
             |                                  ^
          124|               (l.mapAttrs (machine: l.nameValuePair "${user}-o-${machine}"))
[...]

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:751:121:

          750|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;
          751|         in throw "A definition for option `${showOption loc}' is not of type `${type.description}'. Definition values:${showDefs allInvalid}"
             |                                                                                                                         ^
          752|       else

       … while evaluating the attribute 'mergedValue'
[ ... ]

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/options.nix:342:10:

          341|       prettyEval = builtins.tryEval
          342|         (lib.generators.toPretty { }
             |          ^
          343|           (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value));

       … while evaluating anonymous lambda

[ ... ]

error: attribute 'pkgs' missing

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:467:28:

          466|         builtins.addErrorContext (context name)
          467|           (args.${name} or config._module.args.${name})
             |                            ^
          468|       ) (lib.functionArgs f);

       … while evaluating the module argument `pkgs' in "/nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/nixos/modules/profiles/installation-device.nix":

       … while evaluating anonymous lambda

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/modules.nix:465:44:

          464|       context = name: ''while evaluating the module argument `${name}' in "${key}":'';
          465|       extraArgs = builtins.mapAttrs (name: _:
             |                                            ^
          466|         builtins.addErrorContext (context name)

       … from call site

       … while evaluating 'id'

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/trivial.nix:14:5:

           13|     # The value to return
           14|     x: x;
             |     ^
           15|

       … from call site

       at /nix/store/5y5ndnbgvv6mfknnxv48v1swznc5g6wx-source/lib/generators.nix:272:47:

          271|           let
          272|             evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
             |                                               ^
          273|           in

       … while evaluating anonymous lambda
16:11:45
@blaggacao:matrix.org@blaggacao:matrix.org Above all, this looks like a boundary violation of lib.evalModules itself, which appears to depend on pkgs, but without ensuring it. 16:12:30
@blaggacao:matrix.org@blaggacao:matrix.org * Above all, this looks like a boundary violation of lib.evalModules itself, which appears to depend on pkgs, but without apparently ensuring its presence. 16:12:49
@blaggacao:matrix.org@blaggacao:matrix.org ... or maby that's rather a side offect of wanting to eval a particular module, whithout (me) ensuring said contract, but as soon as I add something reasonable as pkgs, I get an infinite recursion. 16:13:55

Show newer messages


Back to Room ListRoom Version: 6