Created
July 26, 2022 03:43
-
-
Save FlafyDev/2e5353314f58f73ec657867d0f82f191 to your computer and use it in GitHub Desktop.
trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
building the system configuration... | |
error: infinite recursion encountered | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:283:21: | |
282| (regularModules ++ [ internalModule ]) | |
283| ({ inherit lib options config specialArgs; } // specialArgs); | |
| ^ | |
284| in mergeModules prefix (reverseList collected); | |
… while evaluating the attribute 'config' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:283:21: | |
282| (regularModules ++ [ internalModule ]) | |
283| ({ inherit lib options config specialArgs; } // specialArgs); | |
| ^ | |
284| in mergeModules prefix (reverseList collected); | |
… while evaluating the module argument `config' in "/nix/store/808l0gj6yp2g3i7592825jxdkc78vm5y-source/packages/mpv/hm-mpv.nix": | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:489:44: | |
488| context = name: ''while evaluating the module argument `${name}' in "${key}":''; | |
489| extraArgs = builtins.mapAttrs (name: _: | |
| ^ | |
490| builtins.addErrorContext (context name) | |
… from call site | |
… while evaluating 'flatten' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:138:13: | |
137| */ | |
138| flatten = x: | |
| ^ | |
139| if isList x | |
… from call site | |
at /nix/store/808l0gj6yp2g3i7592825jxdkc78vm5y-source/packages/mpv/hm-mpv.nix:188:8: | |
187| (mkMerge | |
188| (lists.flatten | |
| ^ | |
189| (map (script: | |
… while evaluating the attribute 'contents' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:908:14: | |
907| { _type = "merge"; | |
908| inherit contents; | |
| ^ | |
909| }; | |
… while evaluating 'pushDownProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:807:24: | |
806| */ | |
807| pushDownProperties = cfg: | |
| ^ | |
808| if cfg._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:809:7: | |
808| if cfg._type or "" == "merge" then | |
809| concatMap pushDownProperties cfg.contents | |
| ^ | |
810| else if cfg._type or "" == "if" then | |
… while evaluating 'pushDownProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:807:24: | |
806| */ | |
807| pushDownProperties = cfg: | |
| ^ | |
808| if cfg._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:811:52: | |
810| else if cfg._type or "" == "if" then | |
811| map (mapAttrs (n: v: mkIf cfg.condition v)) (pushDownProperties cfg.content) | |
| ^ | |
812| else if cfg._type or "" == "override" then | |
… while evaluating 'pushDownProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:807:24: | |
806| */ | |
807| pushDownProperties = cfg: | |
| ^ | |
808| if cfg._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:809:7: | |
808| if cfg._type or "" == "merge" then | |
809| concatMap pushDownProperties cfg.contents | |
| ^ | |
810| else if cfg._type or "" == "if" then | |
… while evaluating 'pushDownProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:807:24: | |
806| */ | |
807| pushDownProperties = cfg: | |
| ^ | |
808| if cfg._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:525:73: | |
524| mergeModules' prefix modules | |
525| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules); | |
| ^ | |
526| | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:525:19: | |
524| mergeModules' prefix modules | |
525| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules); | |
| ^ | |
526| | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:525:8: | |
524| mergeModules' prefix modules | |
525| (concatMap (m: map (config: { file = m._file; inherit config; }) (pushDownProperties m.config)) modules); | |
| ^ | |
526| | |
… while evaluating 'byName' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:550:25: | |
549| */ | |
550| byName = attr: f: modules: | |
| ^ | |
551| zipAttrsWith (n: concatLists) | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:571:21: | |
570| # an attrset 'name' => list of submodules that define ‘name’. | |
571| defnsByName = byName "config" (module: value: | |
| ^ | |
572| map (config: { inherit (module) file; inherit config; }) (pushDownProperties value) | |
… while evaluating 'byName' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:550:25: | |
549| */ | |
550| byName = attr: f: modules: | |
| ^ | |
551| zipAttrsWith (n: concatLists) | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:575:22: | |
574| # extract the definitions for each loc | |
575| defnsByName' = byName "config" (module: value: | |
| ^ | |
576| [{ inherit (module) file; inherit value; }] | |
… while evaluating the attribute 'values' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:868:7: | |
867| in { | |
868| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | |
| ^ | |
869| inherit highestPrio; | |
… while evaluating the attribute 'values' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:769:9: | |
768| in { | |
769| values = defs'''; | |
| ^ | |
770| inherit (defs'') highestPrio; | |
… while evaluating the attribute 'mergedValue' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:775:5: | |
774| # Type-check the remaining definitions, and merge them. Or throw if no definitions. | |
775| mergedValue = | |
| ^ | |
776| if isDefined then | |
… while evaluating the option `home-manager.users.flafydev._module.freeformType': | |
… while evaluating the attribute 'value' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:741:9: | |
740| in warnDeprecation opt // | |
741| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | |
| ^ | |
742| inherit (res.defsFinal') highestPrio; | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:292:72: | |
291| # For definitions that have an associated option | |
292| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
293| | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:401:20: | |
400| then recurse (path ++ [name]) value | |
401| else f (path ++ [name]) value; | |
| ^ | |
402| in mapAttrs g; | |
… while evaluating 'g' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:398:19: | |
397| g = | |
398| name: value: | |
| ^ | |
399| if isAttrs value && cond value | |
… from call site | |
… while evaluating the attribute 'config' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:357:9: | |
356| options = checked options; | |
357| config = checked (removeAttrs config [ "_module" ]); | |
| ^ | |
358| _module = checked (config._module); | |
… while evaluating 'merge' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/types.nix:647:22: | |
646| check = x: isAttrs x || isFunction x || path.check x; | |
647| merge = loc: defs: | |
| ^ | |
648| (base.extendModules { | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:777:59: | |
776| if isDefined then | |
777| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | |
| ^ | |
778| else let allInvalid = filter (def: ! type.check def.value) defsFinal; | |
… while evaluating the attribute 'value' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:788:27: | |
787| optionalValue = | |
788| if isDefined then { value = mergedValue; } | |
| ^ | |
789| else {}; | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/types.nix:432:22: | |
431| merge = loc: defs: | |
432| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| ^ | |
433| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
… from call site | |
… while evaluating 'flip' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/trivial.nix:138:16: | |
137| */ | |
138| flip = f: a: b: f b a; | |
| ^ | |
139| | |
… from call site | |
at /nix/store/jivk03hyrj9p6my00ir51nfqyl2giyx4-source/nixos/common.nix:113:7: | |
112| assertions = flatten (flip mapAttrsToList cfg.users (user: config: | |
113| flip map config.assertions (assertion: { | |
| ^ | |
114| inherit (assertion) assertion; | |
… while evaluating anonymous lambda | |
at /nix/store/jivk03hyrj9p6my00ir51nfqyl2giyx4-source/nixos/common.nix:112:64: | |
111| | |
112| assertions = flatten (flip mapAttrsToList cfg.users (user: config: | |
| ^ | |
113| flip map config.assertions (assertion: { | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:356:16: | |
355| mapAttrsToList = f: attrs: | |
356| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
357| | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:356:10: | |
355| mapAttrsToList = f: attrs: | |
356| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
357| | |
… from call site | |
… while evaluating 'flatten' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:138:13: | |
137| */ | |
138| flatten = x: | |
| ^ | |
139| if isList x | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:140:24: | |
139| if isList x | |
140| then concatMap (y: flatten y) x | |
| ^ | |
141| else [x]; | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:140:21: | |
139| if isList x | |
140| then concatMap (y: flatten y) x | |
| ^ | |
141| else [x]; | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:140:10: | |
139| if isList x | |
140| then concatMap (y: flatten y) x | |
| ^ | |
141| else [x]; | |
… while evaluating 'flatten' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:138:13: | |
137| */ | |
138| flatten = x: | |
| ^ | |
139| if isList x | |
… from call site | |
at /nix/store/jivk03hyrj9p6my00ir51nfqyl2giyx4-source/nixos/common.nix:112:18: | |
111| | |
112| assertions = flatten (flip mapAttrsToList cfg.users (user: config: | |
| ^ | |
113| flip map config.assertions (assertion: { | |
… while evaluating the attribute 'content' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:898:14: | |
897| { _type = "if"; | |
898| inherit condition content; | |
| ^ | |
899| }; | |
… while evaluating 'dischargeProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:827:25: | |
826| */ | |
827| dischargeProperties = def: | |
| ^ | |
828| if def._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:833:11: | |
832| if def.condition then | |
833| dischargeProperties def.content | |
| ^ | |
834| else | |
… while evaluating 'dischargeProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:827:25: | |
826| */ | |
827| dischargeProperties = def: | |
| ^ | |
828| if def._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:756:137: | |
755| defs' = concatMap (m: | |
756| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
757| ) defs; | |
… while evaluating definitions from `/nix/store/jivk03hyrj9p6my00ir51nfqyl2giyx4-source/nixos/common.nix': | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:755:28: | |
754| # Process mkMerge and mkIf properties. | |
755| defs' = concatMap (m: | |
| ^ | |
756| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:755:17: | |
754| # Process mkMerge and mkIf properties. | |
755| defs' = concatMap (m: | |
| ^ | |
756| 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/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:868:7: | |
867| in { | |
868| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | |
| ^ | |
869| inherit highestPrio; | |
… while evaluating the attribute 'values' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:769:9: | |
768| in { | |
769| values = defs'''; | |
| ^ | |
770| inherit (defs'') highestPrio; | |
… while evaluating the attribute 'mergedValue' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:775:5: | |
774| # Type-check the remaining definitions, and merge them. Or throw if no definitions. | |
775| mergedValue = | |
| ^ | |
776| if isDefined then | |
… while evaluating the option `assertions': | |
… while evaluating the attribute 'value' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:741:9: | |
740| in warnDeprecation opt // | |
741| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | |
| ^ | |
742| inherit (res.defsFinal') highestPrio; | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:292:72: | |
291| # For definitions that have an associated option | |
292| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
293| | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:401:20: | |
400| then recurse (path ++ [name]) value | |
401| else f (path ++ [name]) value; | |
| ^ | |
402| in mapAttrs g; | |
… while evaluating 'g' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:398:19: | |
397| g = | |
398| name: value: | |
| ^ | |
399| if isAttrs value && cond value | |
… from call site | |
… while evaluating 'fold'' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:56:15: | |
55| len = length list; | |
56| fold' = n: | |
| ^ | |
57| if n == len | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:60:8: | |
59| else op (elemAt list n) (fold' (n + 1)); | |
60| in fold' 0; | |
| ^ | |
61| | |
… while evaluating 'foldr' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/lists.nix:53:20: | |
52| */ | |
53| foldr = op: nul: list: | |
| ^ | |
54| let | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/nixos/modules/system/activation/top-level.nix:139:12: | |
138| # Replace runtime dependencies | |
139| system = foldr ({ oldDependency, newDependency }: drv: | |
| ^ | |
140| pkgs.replaceDependency { inherit oldDependency newDependency drv; } | |
… while evaluating the attribute 'value' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:576:44: | |
575| defnsByName' = byName "config" (module: value: | |
576| [{ inherit (module) file; inherit value; }] | |
| ^ | |
577| ) configs; | |
… while evaluating 'dischargeProperties' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:827:25: | |
826| */ | |
827| dischargeProperties = def: | |
| ^ | |
828| if def._type or "" == "merge" then | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:756:137: | |
755| defs' = concatMap (m: | |
756| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
757| ) defs; | |
… while evaluating definitions from `/nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/nixos/modules/system/activation/top-level.nix': | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:755:28: | |
754| # Process mkMerge and mkIf properties. | |
755| defs' = concatMap (m: | |
| ^ | |
756| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:755:17: | |
754| # Process mkMerge and mkIf properties. | |
755| defs' = concatMap (m: | |
| ^ | |
756| 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/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:868:7: | |
867| in { | |
868| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | |
| ^ | |
869| inherit highestPrio; | |
… while evaluating the attribute 'values' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:769:9: | |
768| in { | |
769| values = defs'''; | |
| ^ | |
770| inherit (defs'') highestPrio; | |
… while evaluating the attribute 'mergedValue' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:775:5: | |
774| # Type-check the remaining definitions, and merge them. Or throw if no definitions. | |
775| mergedValue = | |
| ^ | |
776| if isDefined then | |
… while evaluating the option `system.build.toplevel': | |
… while evaluating the attribute 'value' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:741:9: | |
740| in warnDeprecation opt // | |
741| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | |
| ^ | |
742| inherit (res.defsFinal') highestPrio; | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/modules.nix:292:72: | |
291| # For definitions that have an associated option | |
292| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
293| | |
… from call site | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:401:20: | |
400| then recurse (path ++ [name]) value | |
401| else f (path ++ [name]) value; | |
| ^ | |
402| in mapAttrs g; | |
… while evaluating 'g' | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:398:19: | |
397| g = | |
398| name: value: | |
| ^ | |
399| if isAttrs value && cond value | |
… from call site | |
… while evaluating anonymous lambda | |
at /nix/store/a885zpv9ys2p2x7qnzqvxlsy321mclip-source/lib/attrsets.nix:518:24: | |
517| let f = attrPath: | |
518| zipAttrsWith (n: values: | |
| ^ | |
519| let here = attrPath ++ [n]; in | |
… from call site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment