Created
August 27, 2023 21:05
-
-
Save HanEmile/45f3bda29005ec5be7bc20bff55d59d1 to your computer and use it in GitHub Desktop.
A long nix stacktrace
This file contains hidden or 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
error: | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:812:24: | |
811| let f = attrPath: | |
812| zipAttrsWith (n: values: | |
| ^ | |
813| let here = attrPath ++ [n]; in | |
… while calling 'g' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:595:19: | |
594| g = | |
595| name: value: | |
| ^ | |
596| if isAttrs value && cond value | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:598:20: | |
597| then recurse (path ++ [name]) value | |
598| else f (path ++ [name]) value; | |
| ^ | |
599| in mapAttrs g; | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:248:72: | |
247| # For definitions that have an associated option | |
248| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
249| | |
… while evaluating the option `system.build.toplevel': | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:774:28: | |
773| # Process mkMerge and mkIf properties. | |
774| defs' = concatMap (m: | |
| ^ | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while evaluating definitions from `/nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/activation/top-level.nix': | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:775:137: | |
774| defs' = concatMap (m: | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
776| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:846:25: | |
845| */ | |
846| dischargeProperties = def: | |
| ^ | |
847| if def._type or "" == "merge" then | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/activation/top-level.nix:131:12: | |
130| # Replace runtime dependencies | |
131| system = foldr ({ oldDependency, newDependency }: drv: | |
| ^ | |
132| pkgs.replaceDependency { inherit oldDependency newDependency drv; } | |
… while calling 'foldr' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:53:20: | |
52| */ | |
53| foldr = op: nul: list: | |
| ^ | |
54| let | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:60:8: | |
59| else op (elemAt list n) (fold' (n + 1)); | |
60| in fold' 0; | |
| ^ | |
61| | |
… while calling 'fold'' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:56:15: | |
55| len = length list; | |
56| fold' = n: | |
| ^ | |
57| if n == len | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/activation/top-level.nix:128:10: | |
127| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" | |
128| else showWarnings config.warnings baseSystem; | |
| ^ | |
129| | |
… while calling 'showWarnings' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/trivial.nix:414:28: | |
413| | |
414| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | |
| ^ | |
415| | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/trivial.nix:414:33: | |
413| | |
414| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | |
| ^ | |
415| | |
… while calling 'foldr' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:53:20: | |
52| */ | |
53| foldr = op: nul: list: | |
| ^ | |
54| let | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:60:8: | |
59| else op (elemAt list n) (fold' (n + 1)); | |
60| in fold' 0; | |
| ^ | |
61| | |
… while calling 'fold'' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:56:15: | |
55| len = length list; | |
56| fold' = n: | |
| ^ | |
57| if n == len | |
… while calling 'g' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:595:19: | |
594| g = | |
595| name: value: | |
| ^ | |
596| if isAttrs value && cond value | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:598:20: | |
597| then recurse (path ++ [name]) value | |
598| else f (path ++ [name]) value; | |
| ^ | |
599| in mapAttrs g; | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:248:72: | |
247| # For definitions that have an associated option | |
248| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
249| | |
… while evaluating the option `warnings': | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:774:28: | |
773| # Process mkMerge and mkIf properties. | |
774| defs' = concatMap (m: | |
| ^ | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while evaluating definitions from `/nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/boot/systemd.nix': | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:775:137: | |
774| defs' = concatMap (m: | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
776| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:846:25: | |
845| */ | |
846| dischargeProperties = def: | |
| ^ | |
847| if def._type or "" == "merge" then | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:539:10: | |
538| attrs: | |
539| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
540| | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:539:16: | |
538| attrs: | |
539| map (name: f name attrs.${name}) (attrNames attrs); | |
| ^ | |
540| | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/boot/systemd.nix:422:16: | |
421| mapAttrsToList | |
422| (name: service: | |
| ^ | |
423| let | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/boot/systemd.nix:429:16: | |
428| concatLists [ | |
429| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | |
| ^ | |
430| "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'" | |
… while calling 'optional' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/lists.nix:255:20: | |
254| */ | |
255| optional = cond: elem: if cond then [elem] else []; | |
| ^ | |
256| | |
… while calling 'g' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:595:19: | |
594| g = | |
595| name: value: | |
| ^ | |
596| if isAttrs value && cond value | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:598:20: | |
597| then recurse (path ++ [name]) value | |
598| else f (path ++ [name]) value; | |
| ^ | |
599| in mapAttrs g; | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:248:72: | |
247| # For definitions that have an associated option | |
248| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
249| | |
… while evaluating the option `systemd.services.tailscale-autoconnect.serviceConfig': | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:774:28: | |
773| # Process mkMerge and mkIf properties. | |
774| defs' = concatMap (m: | |
| ^ | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while evaluating definitions from `/nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/nixos/modules/system/boot/systemd.nix': | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:775:137: | |
774| defs' = concatMap (m: | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
776| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:846:25: | |
845| */ | |
846| dischargeProperties = def: | |
| ^ | |
847| if def._type or "" == "merge" then | |
… while calling 'g' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:595:19: | |
594| g = | |
595| name: value: | |
| ^ | |
596| if isAttrs value && cond value | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/attrsets.nix:598:20: | |
597| then recurse (path ++ [name]) value | |
598| else f (path ++ [name]) value; | |
| ^ | |
599| in mapAttrs g; | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:248:72: | |
247| # For definitions that have an associated option | |
248| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options; | |
| ^ | |
249| | |
… while evaluating the option `systemd.services.tailscale-autoconnect.script': | |
… while calling anonymous lambda | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:774:28: | |
773| # Process mkMerge and mkIf properties. | |
774| defs' = concatMap (m: | |
| ^ | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
… while evaluating definitions from `/nix/store/30z2jl4c4b7ydyi7cal71nli733rjjbb-source/ops/machines/corrino/configuration.nix': | |
… from call site | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:775:137: | |
774| defs' = concatMap (m: | |
775| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | |
| ^ | |
776| ) defs; | |
… while calling 'dischargeProperties' | |
at /nix/store/0iqihbvgw5r24rvff4mkikzz0v0lalh1-source/lib/modules.nix:846:25: | |
845| */ | |
846| dischargeProperties = def: | |
| ^ | |
847| if def._type or "" == "merge" then | |
error: cannot coerce a set to a string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment