Skip to content

Instantly share code, notes, and snippets.

@nipsy
Created November 12, 2024 21:07
Show Gist options
  • Select an option

  • Save nipsy/61652eaf9705093536169f4765e8950c to your computer and use it in GitHub Desktop.

Select an option

Save nipsy/61652eaf9705093536169f4765e8950c to your computer and use it in GitHub Desktop.
disko-related-error.txt
building the system configuration...
error:
… while calling anonymous lambda
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/attrsets.nix:1570:24:
1569| let f = attrPath:
1570| zipAttrsWith (n: values:
| ^
1571| let here = attrPath ++ [n]; in
… while calling the 'head' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/attrsets.nix:1574:11:
1573| || pred here (elemAt values 1) (head values) then
1574| head values
| ^
1575| else
… while calling anonymous lambda
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/attrsets.nix:1204:18:
1203| mapAttrs
1204| (name: value:
| ^
1205| if isAttrs value && cond value
… from call site
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/attrsets.nix:1207:18:
1206| then recurse (path ++ [ name ]) value
1207| else f (path ++ [ name ]) value);
| ^
1208| in
… while calling anonymous lambda
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:254:72:
253| # For definitions that have an associated option
254| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
255|
… while evaluating the attribute 'value'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:816:9:
815| in warnDeprecation opt //
816| { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
| ^
817| inherit (res.defsFinal') highestPrio;
… while evaluating the option `system.build.toplevel':
… while evaluating the attribute 'mergedValue'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:851:5:
850| # Type-check the remaining definitions, and merge them. Or throw if no definitions.
851| mergedValue =
| ^
852| if isDefined then
… while evaluating a branch condition
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:852:7:
851| mergedValue =
852| if isDefined then
| ^
853| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
… while evaluating the attribute 'values'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:845:9:
844| in {
845| values = defs''';
| ^
846| inherit (defs'') highestPrio;
… while evaluating a branch condition
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:841:11:
840| # Avoid sorting if we don't have to.
841| if any (def: def.value._type or "" == "order") defs''.values
| ^
842| then sortProperties defs''.values
… while calling the 'any' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:841:14:
840| # Avoid sorting if we don't have to.
841| if any (def: def.value._type or "" == "order") defs''.values
| ^
842| then sortProperties defs''.values
… while evaluating the attribute 'values'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:944:7:
943| in {
944| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
945| inherit highestPrio;
… while calling the 'concatMap' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:944:16:
943| in {
944| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
| ^
945| inherit highestPrio;
… while calling the 'concatMap' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:831:17:
830| # Process mkMerge and mkIf properties.
831| defs' = concatMap (m:
| ^
832| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while calling anonymous lambda
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:831:28:
830| # Process mkMerge and mkIf properties.
831| defs' = concatMap (m:
| ^
832| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while calling the 'map' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:832:11:
831| defs' = concatMap (m:
832| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
833| ) defs;
… while evaluating definitions from `/nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/nixos/modules/system/activation/top-level.nix':
… from call site
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:832:128:
831| defs' = concatMap (m:
832| map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
833| ) defs;
… while calling 'dischargeProperties'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:903:25:
902| */
903| dischargeProperties = def:
| ^
904| if def._type or "" == "merge" then
… while evaluating a branch condition
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:904:5:
903| dischargeProperties = def:
904| if def._type or "" == "merge" then
| ^
905| concatMap dischargeProperties def.contents
… while evaluating the attribute 'value'
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/lib/modules.nix:614:53:
613| (n: value:
614| [{ inherit (module) file; inherit value; }]
| ^
615| )
… while calling the 'throw' builtin
at /nix/store/0sxsfzswhjck7f4sbsvznz285s4i7y64-source/nixos/modules/system/activation/top-level.nix:73:10:
72| baseSystemAssertWarn = if failedAssertions != []
73| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}"
| ^
74| else showWarnings config.warnings baseSystem;
error:
Failed assertions:
- You cannot have duplicated devices in mirroredBoots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment