Created
October 23, 2024 17:18
-
-
Save nipsy/1abda2866263ddc5ee9e61564ec32f02 to your computer and use it in GitHub Desktop.
sops-nix build failure
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
| # nixos-rebuild switch --upgrade --show-trace | |
| unpacking 1 channels... | |
| building the system configuration... | |
| error: | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1571:24: | |
| 1570| let f = attrPath: | |
| 1571| zipAttrsWith (n: values: | |
| | ^ | |
| 1572| let here = attrPath ++ [n]; in | |
| … while calling the 'head' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1575:11: | |
| 1574| || pred here (elemAt values 1) (head values) then | |
| 1575| head values | |
| | ^ | |
| 1576| else | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1205:18: | |
| 1204| mapAttrs | |
| 1205| (name: value: | |
| | ^ | |
| 1206| if isAttrs value && cond value | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1208:18: | |
| 1207| then recurse (path ++ [ name ]) value | |
| 1208| else f (path ++ [ name ]) value); | |
| | ^ | |
| 1209| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:845:9: | |
| 844| in { | |
| 845| values = defs'''; | |
| | ^ | |
| 846| inherit (defs'') highestPrio; | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/top-level.nix': | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:614:53: | |
| 613| (n: value: | |
| 614| [{ inherit (module) file; inherit value; }] | |
| | ^ | |
| 615| ) | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/top-level.nix:74:10: | |
| 73| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" | |
| 74| else showWarnings config.warnings baseSystem; | |
| | ^ | |
| 75| | |
| … while calling 'showWarnings' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/trivial.nix:938:28: | |
| 937| | |
| 938| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | |
| | ^ | |
| 939| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/trivial.nix:938:33: | |
| 937| | |
| 938| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | |
| | ^ | |
| 939| | |
| … while calling 'foldr' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:121:20: | |
| 120| */ | |
| 121| foldr = op: nul: list: | |
| | ^ | |
| 122| let | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:128:8: | |
| 127| else op (elemAt list n) (fold' (n + 1)); | |
| 128| in fold' 0; | |
| | ^ | |
| 129| | |
| … while calling 'fold'' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:124:15: | |
| 123| len = length list; | |
| 124| fold' = n: | |
| | ^ | |
| 125| if n == len | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:125:9: | |
| 124| fold' = n: | |
| 125| if n == len | |
| | ^ | |
| 126| then nul | |
| … while calling the 'length' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:123:13: | |
| 122| let | |
| 123| len = length list; | |
| | ^ | |
| 124| fold' = n: | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/activation/top-level.nix:74:23: | |
| 73| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" | |
| 74| else showWarnings config.warnings baseSystem; | |
| | ^ | |
| 75| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1205:18: | |
| 1204| mapAttrs | |
| 1205| (name: value: | |
| | ^ | |
| 1206| if isAttrs value && cond value | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1208:18: | |
| 1207| then recurse (path ++ [ name ]) value | |
| 1208| else f (path ++ [ name ]) value); | |
| | ^ | |
| 1209| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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 `warnings': | |
| (10 duplicate frames omitted) | |
| … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix': | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:614:53: | |
| 613| (n: value: | |
| 614| [{ inherit (module) file; inherit value; }] | |
| | ^ | |
| 615| ) | |
| … while calling the 'concatLists' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:447:8: | |
| 446| mkMountNetOnlineWarns = typeStr: defs: lib.concatLists (map (m: mkOneNetOnlineWarn typeStr m.what m) defs); | |
| 447| in concatLists ( | |
| | ^ | |
| 448| mapAttrsToList | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:10: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:16: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:449:16: | |
| 448| mapAttrsToList | |
| 449| (name: service: | |
| | ^ | |
| 450| let | |
| … while calling the 'concatLists' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:455:13: | |
| 454| in | |
| 455| concatLists [ | |
| | ^ | |
| 456| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:456:16: | |
| 455| concatLists [ | |
| 456| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | |
| | ^ | |
| 457| "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'" | |
| … while calling 'optional' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:784:20: | |
| 783| */ | |
| 784| optional = cond: elem: if cond then [elem] else []; | |
| | ^ | |
| 785| | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/lists.nix:784:26: | |
| 783| */ | |
| 784| optional = cond: elem: if cond then [elem] else []; | |
| | ^ | |
| 785| | |
| … in the left operand of the AND (&&) operator | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:456:44: | |
| 455| concatLists [ | |
| 456| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | |
| | ^ | |
| 457| "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'" | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/nixos/modules/system/boot/systemd.nix:451:20: | |
| 450| let | |
| 451| type = service.serviceConfig.Type or ""; | |
| | ^ | |
| 452| restart = service.serviceConfig.Restart or "no"; | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1205:18: | |
| 1204| mapAttrs | |
| 1205| (name: value: | |
| | ^ | |
| 1206| if isAttrs value && cond value | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1208:18: | |
| 1207| then recurse (path ++ [ name ]) value | |
| 1208| else f (path ++ [ name ]) value); | |
| | ^ | |
| 1209| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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 `systemd.services.home-manager-nipsy.serviceConfig': | |
| … while evaluating the attribute 'mergedValue' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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 | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:853:59: | |
| 852| if isDefined then | |
| 853| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | |
| | ^ | |
| 854| else let allInvalid = filter (def: ! type.check def.value) defsFinal; | |
| … while calling 'merge' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:576:20: | |
| 575| check = isAttrs; | |
| 576| merge = loc: defs: | |
| | ^ | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| … while calling the 'mapAttrs' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:577:9: | |
| 576| merge = loc: defs: | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| | ^ | |
| 578| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:577:35: | |
| 576| merge = loc: defs: | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| | ^ | |
| 578| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
| … while calling 'filterAttrs' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:646:5: | |
| 645| pred: | |
| 646| set: | |
| | ^ | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| … while calling the 'listToAttrs' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:5: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … while calling the 'concatMap' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:18: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:29: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:59: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:62: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:577:51: | |
| 576| merge = loc: defs: | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| | ^ | |
| 578| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:647:43: | |
| 646| set: | |
| 647| listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set)); | |
| | ^ | |
| 648| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:577:86: | |
| 576| merge = loc: defs: | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| | ^ | |
| 578| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
| … while evaluating the attribute 'optionalValue' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:863:5: | |
| 862| | |
| 863| optionalValue = | |
| | ^ | |
| 864| if isDefined then { value = mergedValue; } | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:864:7: | |
| 863| optionalValue = | |
| 864| if isDefined then { value = mergedValue; } | |
| | ^ | |
| 865| else {}; | |
| (8 duplicate frames omitted) | |
| … while evaluating definitions from `/nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/flake.nix': | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:581:60: | |
| 580| # Push down position info. | |
| 581| (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs))); | |
| | ^ | |
| 582| emptyValue = { value = {}; }; | |
| … while calling the 'getAttr' builtin | |
| at <nix/derivation-internal.nix>:44:19: | |
| 43| value = commonAttrs // { | |
| 44| outPath = builtins.getAttr outputName strict; | |
| | ^ | |
| 45| drvPath = strict.drvPath; | |
| … while calling the 'derivationStrict' builtin | |
| at <nix/derivation-internal.nix>:34:12: | |
| 33| | |
| 34| strict = derivationStrict drvAttrs; | |
| | ^ | |
| 35| | |
| … while evaluating derivation 'home-manager-generation' | |
| whose name attribute is located at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/stdenv/generic/make-derivation.nix:336:7 | |
| … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/build-support/trivial-builders/default.nix:59:17: | |
| 58| enableParallelBuilding = true; | |
| 59| inherit buildCommand name; | |
| | ^ | |
| 60| passAsFile = [ "buildCommand" ] | |
| … while calling the 'getAttr' builtin | |
| at <nix/derivation-internal.nix>:44:19: | |
| 43| value = commonAttrs // { | |
| 44| outPath = builtins.getAttr outputName strict; | |
| | ^ | |
| 45| drvPath = strict.drvPath; | |
| … while calling the 'derivationStrict' builtin | |
| at <nix/derivation-internal.nix>:34:12: | |
| 33| | |
| 34| strict = derivationStrict drvAttrs; | |
| | ^ | |
| 35| | |
| … while evaluating derivation 'home-manager-files' | |
| whose name attribute is located at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/stdenv/generic/make-derivation.nix:336:7 | |
| … while evaluating attribute 'buildCommand' of derivation 'home-manager-files' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/build-support/trivial-builders/default.nix:59:17: | |
| 58| enableParallelBuilding = true; | |
| 59| inherit buildCommand name; | |
| | ^ | |
| 60| passAsFile = [ "buildCommand" ] | |
| … while calling the 'concatStringsSep' builtin | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:352:12: | |
| 351| } | |
| 352| '' + concatStrings ( | |
| | ^ | |
| 353| mapAttrsToList (n: v: '' | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:10: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:16: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … while calling anonymous lambda | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:353:28: | |
| 352| '' + concatStrings ( | |
| 353| mapAttrsToList (n: v: '' | |
| | ^ | |
| 354| insertFile ${ | |
| … from call site | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:355:13: | |
| 354| insertFile ${ | |
| 355| escapeShellArgs [ | |
| | ^ | |
| 356| (sourceStorePath v) | |
| … while calling 'concatMapStringsSep' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:232:5: | |
| 231| f: | |
| 232| list: concatStringsSep sep (map f list); | |
| | ^ | |
| 233| | |
| … while calling the 'concatStringsSep' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:232:11: | |
| 231| f: | |
| 232| list: concatStringsSep sep (map f list); | |
| | ^ | |
| 233| | |
| … while calling 'escapeShellArg' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:1056:20: | |
| 1055| */ | |
| 1056| escapeShellArg = arg: | |
| | ^ | |
| 1057| let | |
| … while evaluating a branch condition | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:1060:7: | |
| 1059| in | |
| 1060| if match "[[:alnum:],._+:@%/-]+" string == null | |
| | ^ | |
| 1061| then "'${replaceStrings ["'"] ["'\\''"] string}'" | |
| … while calling the 'match' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:1060:10: | |
| 1059| in | |
| 1060| if match "[[:alnum:],._+:@%/-]+" string == null | |
| | ^ | |
| 1061| then "'${replaceStrings ["'"] ["'\\''"] string}'" | |
| … while evaluating the second argument passed to builtins.match | |
| … while calling the 'toString' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/strings.nix:1058:16: | |
| 1057| let | |
| 1058| string = toString arg; | |
| | ^ | |
| 1059| in | |
| … from call site | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:356:16: | |
| 355| escapeShellArgs [ | |
| 356| (sourceStorePath v) | |
| | ^ | |
| 357| v.target | |
| … while calling 'sourceStorePath' | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:15:21: | |
| 14| | |
| 15| sourceStorePath = file: | |
| | ^ | |
| 16| let | |
| … while evaluating a branch condition | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:20:7: | |
| 19| in | |
| 20| if builtins.hasContext sourcePath | |
| | ^ | |
| 21| then file.source | |
| … while calling the 'hasContext' builtin | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:20:10: | |
| 19| in | |
| 20| if builtins.hasContext sourcePath | |
| | ^ | |
| 21| then file.source | |
| … while evaluating the argument passed to builtins.hasContext | |
| … while calling the 'toString' builtin | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:17:20: | |
| 16| let | |
| 17| sourcePath = toString file.source; | |
| | ^ | |
| 18| sourceName = config.lib.strings.storeFileName (baseNameOf sourcePath); | |
| … from call site | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/files.nix:17:29: | |
| 16| let | |
| 17| sourcePath = toString file.source; | |
| | ^ | |
| 18| sourceName = config.lib.strings.storeFileName (baseNameOf sourcePath); | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1205:18: | |
| 1204| mapAttrs | |
| 1205| (name: value: | |
| | ^ | |
| 1206| if isAttrs value && cond value | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1208:18: | |
| 1207| then recurse (path ++ [ name ]) value | |
| 1208| else f (path ++ [ name ]) value); | |
| | ^ | |
| 1209| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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 `home-manager.users.nipsy.home.file."/home/nipsy/.config/systemd/user/default.target.wants/sops-nix.service".source': | |
| (10 duplicate frames omitted) | |
| … while evaluating definitions from `/nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/misc/xdg.nix': | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:614:53: | |
| 613| (n: value: | |
| 614| [{ inherit (module) file; inherit value; }] | |
| | ^ | |
| 615| ) | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:614:53: | |
| 613| (n: value: | |
| 614| [{ inherit (module) file; inherit value; }] | |
| | ^ | |
| 615| ) | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1205:18: | |
| 1204| mapAttrs | |
| 1205| (name: value: | |
| | ^ | |
| 1206| if isAttrs value && cond value | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1208:18: | |
| 1207| then recurse (path ++ [ name ]) value | |
| 1208| else f (path ++ [ name ]) value); | |
| | ^ | |
| 1209| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-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/dyzl40h25l04565n90psbhzgnc5vp2xr-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 `home-manager.users.nipsy.xdg.configFile."systemd/user/default.target.wants/sops-nix.service".source': | |
| (10 duplicate frames omitted) | |
| … while evaluating definitions from `/nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/systemd.nix': | |
| (6 duplicate frames omitted) | |
| … while evaluating derivation 'sops-nix.service' | |
| whose name attribute is located at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/stdenv/generic/make-derivation.nix:336:7 | |
| … while evaluating attribute 'text' of derivation 'sops-nix.service' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/pkgs/build-support/trivial-builders/default.nix:101:17: | |
| 100| ({ | |
| 101| inherit text executable checkPhase allowSubstitutes preferLocalBuild; | |
| | ^ | |
| 102| passAsFile = [ "text" ] | |
| … from call site | |
| at /nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/modules/systemd.nix:41:16: | |
| 40| name = pathSafeName; | |
| 41| text = toSystemdIni serviceCfg; | |
| | ^ | |
| 42| destination = "/${filename}"; | |
| … while calling 'toINI' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:231:6: | |
| 230| listsAsDuplicateKeys ? false | |
| 231| }: attrsOfAttrs: | |
| | ^ | |
| 232| let | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:242:7: | |
| 241| # map input to ini sections | |
| 242| mapAttrsToStringsSep "\n" mkSection attrsOfAttrs; | |
| | ^ | |
| 243| | |
| … while calling 'mapAttrsToStringsSep' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:234:44: | |
| 233| # map function to string for each key val | |
| 234| mapAttrsToStringsSep = sep: mapFn: attrs: | |
| | ^ | |
| 235| concatStringsSep sep | |
| … while calling the 'concatStringsSep' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:235:11: | |
| 234| mapAttrsToStringsSep = sep: mapFn: attrs: | |
| 235| concatStringsSep sep | |
| | ^ | |
| 236| (mapAttrsToList mapFn attrs); | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:10: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:16: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … while calling 'mkSection' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:237:31: | |
| 236| (mapAttrsToList mapFn attrs); | |
| 237| mkSection = sectName: sectValues: '' | |
| | ^ | |
| 238| [${mkSectionName sectName}] | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:239:14: | |
| 238| [${mkSectionName sectName}] | |
| 239| '' + toKeyValue { inherit mkKeyValue listsAsDuplicateKeys; } sectValues; | |
| | ^ | |
| 240| in | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:182:6: | |
| 181| else k: v: [ (mkLine k v) ]; | |
| 182| in attrs: concatStrings (concatLists (mapAttrsToList mkLines attrs)); | |
| | ^ | |
| 183| | |
| … while calling the 'concatStringsSep' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:182:13: | |
| 181| else k: v: [ (mkLine k v) ]; | |
| 182| in attrs: concatStrings (concatLists (mapAttrsToList mkLines attrs)); | |
| | ^ | |
| 183| | |
| … while calling the 'concatLists' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:182:28: | |
| 181| else k: v: [ (mkLine k v) ]; | |
| 182| in attrs: concatStrings (concatLists (mapAttrsToList mkLines attrs)); | |
| | ^ | |
| 183| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/generators.nix:182:41: | |
| 181| else k: v: [ (mkLine k v) ]; | |
| 182| in attrs: concatStrings (concatLists (mapAttrsToList mkLines attrs)); | |
| | ^ | |
| 183| | |
| … while calling 'mapAttrsToList' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1095:5: | |
| 1094| f: | |
| 1095| attrs: | |
| | ^ | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| … while calling the 'map' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:5: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … while calling the 'attrNames' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:39: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … from call site | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/attrsets.nix:1096:23: | |
| 1095| attrs: | |
| 1096| map (name: f name attrs.${name}) (attrNames attrs); | |
| | ^ | |
| 1097| | |
| … while calling anonymous lambda | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/types.nix:577:22: | |
| 576| merge = loc: defs: | |
| 577| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | |
| | ^ | |
| 578| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue | |
| … while evaluating the attribute 'value' | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:864:27: | |
| 863| optionalValue = | |
| 864| if isDefined then { value = mergedValue; } | |
| | ^ | |
| 865| else {}; | |
| … while calling the 'throw' builtin | |
| at /nix/store/dyzl40h25l04565n90psbhzgnc5vp2xr-source/lib/modules.nix:855:12: | |
| 854| else let allInvalid = filter (def: ! type.check def.value) defsFinal; | |
| 855| in throw "A definition for option `${showOption loc}' is not of type `${type.description}'. Definition values:${showDefs allInvalid}" | |
| | ^ | |
| 856| else | |
| error: A definition for option `home-manager.users.nipsy.systemd.user.services.sops-nix.Environment' is not of type `attribute set of (boolean or signed integer or string or path or list of (boolean or signed integer or string or path))'. Definition values: | |
| - In `/nix/store/3kmac1dmmfpcdpfa484g5f5snfjysmb4-source/nixos/common.nix': "" | |
| [1] 1837576 exit 1 nixos-rebuild switch --upgrade --show-trace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment