Skip to content

Instantly share code, notes, and snippets.

@YellowOnion
Created February 12, 2024 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YellowOnion/a6c0eefbc0fc7c997ea7d18b1a3138d9 to your computer and use it in GitHub Desktop.
Save YellowOnion/a6c0eefbc0fc7c997ea7d18b1a3138d9 to your computer and use it in GitHub Desktop.
error:
… from call site
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:44:18:
43| withExtraAttrs = rawModule:
44| let module = moduleChecks rawModule;
| ^
45| in {
… while calling 'moduleChecks'
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:31:18:
30|
31| moduleChecks = raw:
| ^
32| showWarnings (let
… from call site
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:32:5:
31| moduleChecks = raw:
32| showWarnings (let
| ^
33| failed = collectFailed raw.config;
… while calling 'showWarnings'
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:15:18:
14|
15| showWarnings = res:
| ^
16| let f = w: x: builtins.trace "warning: ${w}" x;
… from call site
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:17:8:
16| let f = w: x: builtins.trace "warning: ${w}" x;
17| in fold f res res.config.warnings;
| ^
18|
… while calling 'foldr'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/lists.nix:53:20:
52| */
53| foldr = op: nul: list:
| ^
54| let
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-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/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/lists.nix:56:15:
55| len = length list;
56| fold' = n:
| ^
57| if n == len
… from call site
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:33:16:
32| showWarnings (let
33| failed = collectFailed raw.config;
| ^
34| failedStr = concatStringsSep "\n" (map (x: "- ${x}") failed);
… while calling 'collectFailed'
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/default.nix:12:19:
11|
12| collectFailed = cfg:
| ^
13| map (x: x.message) (filter (x: !x.assertion) cfg.assertions);
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:10:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:16:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:695:46:
694| else
695| concatLists (mapAttrsToList (name: defs:
| ^
696| map (def: def // {
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:681:22:
680| # Propagate all unmatched definitions from nested option sets
681| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
682| # Plus the definitions for the current prefix that don't have a matching option
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:10:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:16:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:695:46:
694| else
695| concatLists (mapAttrsToList (name: defs:
| ^
696| map (def: def // {
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:681:22:
680| # Propagate all unmatched definitions from nested option sets
681| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
682| # Plus the definitions for the current prefix that don't have a matching option
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:10:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:653:16:
652| attrs:
653| map (name: f name attrs.${name}) (attrNames attrs);
| ^
654|
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:695:46:
694| else
695| concatLists (mapAttrsToList (name: defs:
| ^
696| map (def: def // {
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:681:22:
680| # Propagate all unmatched definitions from nested option sets
681| mapAttrs (n: v: v.unmatchedDefns) resultsByName
| ^
682| # Plus the definitions for the current prefix that don't have a matching option
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:629:39:
628|
629| resultsByName = mapAttrs (name: decls:
| ^
630| # We're descending into attribute ‘name’.
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:636:14:
635| optionDecls = filter
636| (m: m.options?_type
| ^
637| && (m.options._type == "option"
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:190:39:
189| then value
190| else { ${elemAt attrPath n} = atDepth (n + 1); };
| ^
191| in atDepth 0;
… while calling 'atDepth'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:187:17:
186| len = length attrPath;
187| atDepth = n:
| ^
188| if n == len
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:1272:12:
1271| apply = x: use (toOf config);
1272| } // optionalAttrs (toType != null) {
| ^
1273| type = toType;
… while calling 'optionalAttrs'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:819:5:
818| # The attribute set to return if `cond` is `true`.
819| as:
| ^
820| if cond then as else {};
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:1265:26:
1264| (abort "Renaming error: option `${showOption to}' does not exist.");
1265| toType = let opt = attrByPath to {} options; in opt.type or (types.submodule {});
| ^
1266| in
… while calling 'attrByPath'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:44:5:
43| # The nested attribute set to select values from
44| set:
| ^
45| let
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:58:7:
57| in
58| attrByPath' 0 set;
| ^
59|
… while calling 'attrByPath''
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:47:24:
46| lenAttrPath = length attrPath;
47| attrByPath' = n: s: (
| ^
48| if n == lenAttrPath then s
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:53:31:
52| in
53| if s ? ${attr} then attrByPath' (n + 1) s.${attr}
| ^
54| else default
… while calling 'attrByPath''
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:47:24:
46| lenAttrPath = length attrPath;
47| attrByPath' = n: s: (
| ^
48| if n == lenAttrPath then s
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:53:31:
52| in
53| if s ? ${attr} then attrByPath' (n + 1) s.${attr}
| ^
54| else default
… while calling 'attrByPath''
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:47:24:
46| lenAttrPath = length attrPath;
47| attrByPath' = n: s: (
| ^
48| if n == lenAttrPath then s
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:53:31:
52| in
53| if s ? ${attr} then attrByPath' (n + 1) s.${attr}
| ^
54| else default
… while calling 'attrByPath''
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:47:24:
46| lenAttrPath = length attrPath;
47| attrByPath' = n: s: (
| ^
48| if n == lenAttrPath then s
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:676:37:
675|
676| matchedOptions = mapAttrs (n: v: v.matchedOptions) resultsByName;
| ^
677|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:646:32:
645| in {
646| matchedOptions = evalOptionValue loc opt defns';
| ^
647| unmatchedDefns = [];
… while calling 'evalOptionValue'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:780:31:
779| config value. */
780| evalOptionValue = loc: opt: defs:
| ^
781| let
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:805:9:
804| warnDeprecation =
805| warnIf (opt.type.deprecationMessage != null)
| ^
806| "The type `types.${opt.type.name}' of option `${showOption loc}' defined in ${showFiles opt.declarations} is deprecated. ${opt.type.deprecationMessage}";
… while calling 'warnIf'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/trivial.nix:367:18:
366| */
367| warnIf = cond: msg: if cond then warn msg else x: x;
| ^
368|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:644:23:
643| if length optionDecls == length decls then
644| let opt = fixupOptionType loc (mergeOptionDecls loc decls);
| ^
645| in {
… while calling 'fixupOptionType'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:957:26:
956| # TODO: Merge this into mergeOptionDecls
957| fixupOptionType = loc: opt:
| ^
958| if opt.type.getSubModules or null == null
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:506:44:
505| context = name: ''while evaluating the module argument `${name}' in "${key}":'';
506| extraArgs = builtins.mapAttrs (name: _:
| ^
507| builtins.addErrorContext (context name)
… while evaluating the module argument `pkgs' in "/nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/programs/k9s.nix":
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/types.nix:593:29:
592| merge = loc: defs:
593| zipAttrsWith (name: defs:
| ^
594| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:834:19:
833| # Avoid sorting if we don't have to.
834| if any (def: def.value._type or "" == "order") defs''.values
| ^
835| then sortProperties defs''.values
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:506:44:
505| context = name: ''while evaluating the module argument `${name}' in "${key}":'';
506| extraArgs = builtins.mapAttrs (name: _:
| ^
507| builtins.addErrorContext (context name)
… while evaluating the module argument `pkgsPath' in "/nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/misc/nixpkgs.nix":
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/types.nix:593:29:
592| merge = loc: defs:
593| zipAttrsWith (name: defs:
| ^
594| let merged = mergeDefinitions (loc ++ [name]) elemType defs;
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:834:19:
833| # Avoid sorting if we don't have to.
834| if any (def: def.value._type or "" == "order") defs''.values
| ^
835| then sortProperties defs''.values
… from call site
at /nix/store/h337lv1p087izm0pyrp3wrkz4hrjyqng-source/modules/modules.nix:399:13:
398| _module.args.pkgsPath = lib.mkDefault
399| (if versionAtLeast config.home.stateVersion "20.09" then
| ^
400| pkgs.path
… while calling 'versionAtLeast'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/strings.nix:706:24:
705| */
706| versionAtLeast = v1: v2: !versionOlder v1 v2;
| ^
707|
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/strings.nix:706:29:
705| */
706| versionAtLeast = v1: v2: !versionOlder v1 v2;
| ^
707|
… while calling 'versionOlder'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/strings.nix:694:22:
693| */
694| versionOlder = v1: v2: compareVersions v2 v1 == 1;
| ^
695|
… while calling 'g'
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:739:19:
738| g =
739| name: value:
| ^
740| if isAttrs value && cond value
… from call site
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/attrsets.nix:742:20:
741| then recurse (path ++ [name]) value
742| else f (path ++ [name]) value;
| ^
743| in mapAttrs g;
… while calling anonymous lambda
at /nix/store/599wy5snf00pn1apmsnzmiy0ysdpds03-source/lib/modules.nix:242:72:
241| # For definitions that have an associated option
242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
243|
… while evaluating the option `home.stateVersion':
error: The option `home.stateVersion' is used but not defined.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment