error: infinite recursion encountered
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/trivial.nix:14:8:
13| # The value to return
14| x: x;
| ^
15|
… while evaluating 'id'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/trivial.nix:14:5:
13| # The value to return
14| x: x;
| ^
15|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:47:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:215:40:
214| else id;
215| mapAny = with builtins; depth: v:
| ^
216| let
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:27:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… while evaluating 'evalNext'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:24:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… from call site
… while evaluating 'go'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:237:18:
236| let
237| go = indent: v: with builtins;
| ^
238| let isPath = v: typeOf v == "path";
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:282:57:
281| (name: value:
282| "${libStr.escapeNixIdentifier name} = ${go (indent + " ") value};") v)
| ^
283| + outroSpace + "}"
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:281:22:
280| + libStr.concatStringsSep introSpace (libAttr.mapAttrsToList
281| (name: value:
| ^
282| "${libStr.escapeNixIdentifier name} = ${go (indent + " ") value};") v)
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:16:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:10:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… from call site
… while evaluating 'go'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:237:18:
236| let
237| go = indent: v: with builtins;
| ^
238| let isPath = v: typeOf v == "path";
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:315:10:
314| prettyEval = builtins.tryEval
315| (lib.generators.toPretty { }
| ^
316| (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value));
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:38:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… from call site
… while evaluating 'concatMapStrings'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/strings.nix:53:25:
52| */
53| concatMapStrings = f: list: concatStrings (map f list);
| ^
54|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:20:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… while evaluating 'showDefs'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:14:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:181:105:
180| else assert length defs > 1;
181| throw "The option `${showOption loc}' is defined multiple times.\n${message}\nDefinition values:${showDefs defs}";
| ^
182|
… while evaluating 'mergeUniqueOption'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:177:41:
176|
177| mergeUniqueOption = { message }: loc: defs:
| ^
178| if length defs == 1
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:649:59:
648| if isDefined then
649| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
650| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating the attribute 'optionalValue.value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:660:27:
659| optionalValue =
660| if isDefined then { value = mergedValue; }
| ^
661| else {};
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/types.nix:443:29:
442| merge = loc: defs:
443| zipAttrsWith (name: defs:
| ^
444| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
… from call site
… while evaluating the module argument `utils' in "/nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/nixos/modules/tasks/network-interfaces.nix":
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:388:44:
387| context = name: ''while evaluating the module argument `${name}' in "${key}":'';
388| extraArgs = builtins.mapAttrs (name: _:
| ^
389| builtins.addErrorContext (context name)
… from call site
… while evaluating the attribute 'options'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:467:38:
466| declsByName = byName "options" (module: option:
467| [{ inherit (module) _file; options = option; }]
| ^
468| ) options;
… while evaluating 'isType'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/types.nix:67:18:
66| rec {
67| isType = type: x: (x._type or "") == type;
| ^
68|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:33:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:30:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/lists.nix:240:28:
239| # Predicate
240| pred: foldl' (c: x: if pred x then c + 1 else c) 0;
| ^
241|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/lists.nix:240:22:
239| # Predicate
240| pred: foldl' (c: x: if pred x then c + 1 else c) 0;
| ^
241|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:23:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:478:39:
477|
478| resultsByName = mapAttrs (name: decls:
| ^
479| # We're descending into attribute ‘name’.
… from call site
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:501:37:
500|
501| matchedOptions = mapAttrs (n: v: v.matchedOptions) resultsByName;
| ^
502|
… from call site
… while evaluating 'g'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating 'forEach'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/lists.nix:35:17:
34| */
35| forEach = xs: f: map f xs;
| ^
36|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/nixos/modules/tasks/network-interfaces-systemd.nix:83:17:
82| }
83| (mkMerge (forEach interfaces (i: {
| ^
84| netdevs = mkIf i.virtual ({
… while evaluating the attribute 'contents'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:793:14:
792| { _type = "merge";
793| inherit contents;
| ^
794| };
… while evaluating 'pushDownProperties'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:679:24:
678| */
679| pushDownProperties = cfg:
| ^
680| if cfg._type or "" == "merge" then
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:681:7:
680| if cfg._type or "" == "merge" then
681| concatMap pushDownProperties cfg.contents
| ^
682| else if cfg._type or "" == "if" then
… while evaluating 'pushDownProperties'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:679:24:
678| */
679| pushDownProperties = cfg:
| ^
680| if cfg._type or "" == "merge" then
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:683:52:
682| else if cfg._type or "" == "if" then
683| map (mapAttrs (n: v: mkIf cfg.condition v)) (pushDownProperties cfg.content)
| ^
684| else if cfg._type or "" == "override" then
… while evaluating 'pushDownProperties'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:679:24:
678| */
679| pushDownProperties = cfg:
| ^
680| if cfg._type or "" == "merge" then
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:471:69:
470| defnsByName = byName "config" (module: value:
471| map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
| ^
472| ) configs;
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:470:46:
469| # an attrset 'name' => list of submodules that define ‘name’.
470| defnsByName = byName "config" (module: value:
| ^
471| map (config: { inherit (module) file; inherit config; }) (pushDownProperties value)
… from call site
… while evaluating 'byName'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:449:25:
448| */
449| byName = attr: f: modules:
| ^
450| zipAttrsWith (n: concatLists)
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:474:22:
473| # extract the definitions for each loc
474| defnsByName' = byName "config" (module: value:
| ^
475| [{ inherit (module) file; inherit value; }]
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:740:7:
739| in {
740| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
741| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:641:9:
640| in {
641| values = defs''';
| ^
642| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:647:5:
646| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
647| mergedValue =
| ^
648| if isDefined then
… while evaluating the option `systemd.network.enable':
… while evaluating the attribute 'value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:613:9:
612| in warnDeprecation opt //
613| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
614| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating 'dischargeProperties'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:699:25:
698| */
699| dischargeProperties = def:
| ^
700| if def._type or "" == "merge" then
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:628:137:
627| defs' = concatMap (m:
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
629| ) defs;
… while evaluating definitions from `/nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/nixos/modules/system/boot/networkd.nix':
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:627:28:
626| # Process mkMerge and mkIf properties.
627| defs' = concatMap (m:
| ^
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:627:17:
626| # Process mkMerge and mkIf properties.
627| defs' = concatMap (m:
| ^
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:740:7:
739| in {
740| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
741| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:641:9:
640| in {
641| values = defs''';
| ^
642| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:647:5:
646| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
647| mergedValue =
| ^
648| if isDefined then
… while evaluating the option `services.resolved.enable':
… while evaluating the attribute 'value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:613:9:
612| in warnDeprecation opt //
613| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
614| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating the attribute 'condition'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:783:14:
782| { _type = "if";
783| inherit condition content;
| ^
784| };
… while evaluating 'dischargeProperties'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:699:25:
698| */
699| dischargeProperties = def:
| ^
700| if def._type or "" == "merge" then
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:628:137:
627| defs' = concatMap (m:
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
629| ) defs;
… while evaluating definitions from `/nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/nixos/modules/system/boot/resolved.nix':
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:627:28:
626| # Process mkMerge and mkIf properties.
627| defs' = concatMap (m:
| ^
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:627:17:
626| # Process mkMerge and mkIf properties.
627| defs' = concatMap (m:
| ^
628| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:740:7:
739| in {
740| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
741| inherit highestPrio;
… while evaluating the attribute 'values'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:641:9:
640| in {
641| values = defs''';
| ^
642| inherit (defs'') highestPrio;
… while evaluating the attribute 'mergedValue'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:647:5:
646| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
647| mergedValue =
| ^
648| if isDefined then
… while evaluating the option `users.users':
… while evaluating the attribute 'value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:613:9:
612| in warnDeprecation opt //
613| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
614| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating 'attrByPath'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:24:35:
23| */
24| attrByPath = attrPath: default: e:
| ^
25| let attr = head attrPath;
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:29:12:
28| else if e ? ${attr}
29| then attrByPath (tail attrPath) default e.${attr}
| ^
30| else default;
… while evaluating 'attrByPath'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:24:35:
23| */
24| attrByPath = attrPath: default: e:
| ^
25| let attr = head attrPath;
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:29:12:
28| else if e ? ${attr}
29| then attrByPath (tail attrPath) default e.${attr}
| ^
30| else default;
… while evaluating 'attrByPath'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:24:35:
23| */
24| attrByPath = attrPath: default: e:
| ^
25| let attr = head attrPath;
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:1026:25:
1025| description = "Alias of .";
1026| apply = x: use (toOf config);
| ^
1027| } // optionalAttrs (toType != null) {
… while evaluating 'id'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/trivial.nix:14:5:
13| # The value to return
14| x: x;
| ^
15|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:1026:20:
1025| description = "Alias of .";
1026| apply = x: use (toOf config);
| ^
1027| } // optionalAttrs (toType != null) {
… while evaluating 'apply'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:1026:17:
1025| description = "Alias of .";
1026| apply = x: use (toOf config);
| ^
1027| } // optionalAttrs (toType != null) {
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:606:35:
605| # yield a value computed from the definitions
606| value = if opt ? apply then opt.apply res.mergedValue else res.mergedValue;
| ^
607|
… while evaluating the option `my':
… while evaluating the attribute 'value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:613:9:
612| in warnDeprecation opt //
613| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
614| inherit (res.defsFinal') highestPrio;
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:192:72:
191| # For definitions that have an associated option
192| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
193|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:304:20:
303| then recurse (path ++ [name]) value
304| else f (path ++ [name]) value;
| ^
305| in mapAttrs g;
… while evaluating 'g'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:301:19:
300| g =
301| name: value:
| ^
302| if isAttrs value && cond value
… from call site
… while evaluating 'id'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/trivial.nix:14:5:
13| # The value to return
14| x: x;
| ^
15|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:47:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:215:40:
214| else id;
215| mapAny = with builtins; depth: v:
| ^
216| let
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:27:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… while evaluating 'evalNext'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:217:24:
216| let
217| evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
| ^
218| in
… from call site
… while evaluating 'go'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:237:18:
236| let
237| go = indent: v: with builtins;
| ^
238| let isPath = v: typeOf v == "path";
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:282:57:
281| (name: value:
282| "${libStr.escapeNixIdentifier name} = ${go (indent + " ") value};") v)
| ^
283| + outroSpace + "}"
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:281:22:
280| + libStr.concatStringsSep introSpace (libAttr.mapAttrsToList
281| (name: value:
| ^
282| "${libStr.escapeNixIdentifier name} = ${go (indent + " ") value};") v)
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:16:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:10:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… from call site
… while evaluating 'go'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/generators.nix:237:18:
236| let
237| go = indent: v: with builtins;
| ^
238| let isPath = v: typeOf v == "path";
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:315:10:
314| prettyEval = builtins.tryEval
315| (lib.generators.toPretty { }
| ^
316| (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value));
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:38:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… from call site
… while evaluating 'concatMapStrings'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/strings.nix:53:25:
52| */
53| concatMapStrings = f: list: concatStrings (map f list);
| ^
54|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:20:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… while evaluating 'showDefs'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:311:14:
310|
311| showDefs = defs: concatMapStrings (def:
| ^
312| let
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:181:105:
180| else assert length defs > 1;
181| throw "The option `${showOption loc}' is defined multiple times.\n${message}\nDefinition values:${showDefs defs}";
| ^
182|
… while evaluating 'mergeUniqueOption'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/options.nix:177:41:
176|
177| mergeUniqueOption = { message }: loc: defs:
| ^
178| if length defs == 1
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:649:59:
648| if isDefined then
649| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
| ^
650| else let allInvalid = filter (def: ! type.check def.value) defsFinal;
… while evaluating the attribute 'optionalValue.value'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:660:27:
659| optionalValue =
660| if isDefined then { value = mergedValue; }
| ^
661| else {};
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/types.nix:443:29:
442| merge = loc: defs:
443| zipAttrsWith (name: defs:
| ^
444| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
… from call site
… while evaluating the module argument `utils' in "/nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/nixos/modules/tasks/filesystems.nix":
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:388:44:
387| context = name: ''while evaluating the module argument `${name}' in "${key}":'';
388| extraArgs = builtins.mapAttrs (name: _:
| ^
389| builtins.addErrorContext (context name)
… from call site
… while evaluating the attribute 'options'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:467:38:
466| declsByName = byName "options" (module: option:
467| [{ inherit (module) _file; options = option; }]
| ^
468| ) options;
… while evaluating 'isType'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/types.nix:67:18:
66| rec {
67| isType = type: x: (x._type or "") == type;
| ^
68|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:33:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:30:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/lists.nix:240:28:
239| # Predicate
240| pred: foldl' (c: x: if pred x then c + 1 else c) 0;
| ^
241|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/lists.nix:240:22:
239| # Predicate
240| pred: foldl' (c: x: if pred x then c + 1 else c) 0;
| ^
241|
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:484:23:
483| defns' = defnsByName'.${name} or [];
484| nrOptions = count (m: isOption m.options) decls;
| ^
485| in
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:478:39:
477|
478| resultsByName = mapAttrs (name: decls:
| ^
479| # We're descending into attribute ‘name’.
… from call site
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:506:22:
505| # Propagate all unmatched definitions from nested option sets
506| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
507| # Plus the definitions for the current prefix that don't have a matching option
… from call site
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:520:46:
519| else
520| concatLists (mapAttrsToList (name: defs:
| ^
521| map (def: def // {
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:16:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:10:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… from call site
… while evaluating the attribute 'unmatchedDefns'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:513:7:
512| # Transforms unmatchedDefnsByName into a list of definitions
513| unmatchedDefns =
| ^
514| if configs == []
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:506:22:
505| # Propagate all unmatched definitions from nested option sets
506| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
507| # Plus the definitions for the current prefix that don't have a matching option
… from call site
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:520:46:
519| else
520| concatLists (mapAttrsToList (name: defs:
| ^
521| map (def: def // {
… from call site
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:16:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… while evaluating anonymous lambda
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/attrsets.nix:259:10:
258| mapAttrsToList = f: attrs:
259| map (name: f name attrs.${name}) (attrNames attrs);
| ^
260|
… from call site
… while evaluating the attribute 'unmatchedDefns'
at /nix/store/16bkpr3ciah672mi15v4r7fpdipq020c-source/lib/modules.nix:513:7:
512| # Transforms unmatchedDefnsByName into a list of definitions
513| unmatchedDefns =
| ^
514| if configs == []