NotAShelf / nvf

A highly modular, extensible and distro-agnostic Neovim configuration framework for Nix/NixOS.
https://notashelf.github.io/nvf/
MIT License
158 stars 26 forks source link

tabline/bufferline: add missing options, add back bindings #305

Closed diniamo closed 2 months ago

diniamo commented 3 months ago

That should be all of them, I recommend double checking since my eyes could have slipped very easily.

Note: nvim starts without errors but bufferline doesn't appear.

diniamo commented 3 months ago

I seem to be getting this error when I evaluate my system config with this branch, no idea what it means.

Error ``` error: … while calling the 'head' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1575:11: 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `system.build.toplevel': … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix': … while evaluating the option `warnings': … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix': … while evaluating the option `systemd.services.home-manager-diniamo.serviceConfig': … while evaluating definitions from `/nix/store/0fjhbch5dqrhriiqfah01y970mzsq584-source/modules/workstation/home-manager.nix': … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".source': … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix': … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".text': … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/xdg.nix': … while evaluating the option `home-manager.users.diniamo.xdg.configFile."fontconfig/conf.d/10-hm-fonts.conf".text': … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/fontconfig.nix': … while evaluating the option `vim.builtConfigRC': … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix': … while evaluating the option `vim.configRC.mappings.data': … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix': … while evaluating the option `vim.maps.normal."".desc': … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix': (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: expected a set but found a string: "" ┏━ 1 Errors: ⋮ ┃ … while evaluating the option `system.build.toplevel': ┃ ┃ … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix': ┃ ┃ … while evaluating the option `warnings': ┃ ┃ … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix': ┃ ┃ … while evaluating the option `systemd.services.home-manager-diniamo.serviceConfig': ┃ ┃ … while evaluating definitions from `/nix/store/0fjhbch5dqrhriiqfah01y970mzsq584-source/modules/workstation/home-manager.nix': ┃ ┃ … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".source': ┃ ┃ … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix': ┃ ┃ … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".text': ┃ ┃ … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/xdg.nix': ┃ ┃ … while evaluating the option `home-manager.users.diniamo.xdg.configFile."fontconfig/conf.d/10-hm-fonts.conf".text': ┃ ┃ … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/fontconfig.nix': ┃ ┃ … while evaluating the option `vim.builtConfigRC': ┃ ┃ … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix': ┃ ┃ … while evaluating the option `vim.configRC.mappings.data': ┃ ┃ … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix': ┃ ┃ … while evaluating the option `vim.maps.normal."".desc': ┃ ┃ … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix': ┃ ┃ (stack trace truncated; use '--show-trace' to show the full, detailed trace) ┃ ┃ error: expected a set but found a string: "" ┣━━━ ┗━ ∑ ⚠ Exited with 1 errors reported by nix at 11:41:46 after 14s Error: 0: Command exited with status Exited(1) Location: src/commands.rs:151 ```
With `--show-trace` ``` error: … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `system.build.toplevel': … while evaluating the attribute 'mergedValue' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:844:5: 843| # Type-check the remaining definitions, and merge them. Or throw if no definitions. 844| mergedValue = | ^ 845| if isDefined then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:845:7: 844| mergedValue = 845| if isDefined then | ^ 846| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal … while evaluating the attribute 'values' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:838:9: 837| in { 838| values = defs'''; | ^ 839| inherit (defs'') highestPrio; … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:834:11: 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 the 'any' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:834:14: 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 evaluating the attribute 'values' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:937:7: 936| in { 937| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | ^ 938| inherit highestPrio; … while calling the 'concatMap' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:937:16: 936| in { 937| values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs; | ^ 938| inherit highestPrio; … while calling the 'concatMap' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:824:17: 823| # Process mkMerge and mkIf properties. 824| defs' = concatMap (m: | ^ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:824:28: 823| # Process mkMerge and mkIf properties. 824| defs' = concatMap (m: | ^ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) … while calling the 'map' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:11: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix:71:12: 70| # Replace runtime dependencies 71| system = foldr ({ oldDependency, newDependency }: drv: | ^ 72| pkgs.replaceDependency { inherit oldDependency newDependency drv; } … while calling 'foldr' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:121:20: 120| */ 121| foldr = op: nul: list: | ^ 122| let … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:124:15: 123| len = length list; 124| fold' = n: | ^ 125| if n == len … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix:68:10: 67| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" 68| else showWarnings config.warnings baseSystem; | ^ 69| … while calling 'showWarnings' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:28: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:33: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … while calling 'foldr' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:121:20: 120| */ 121| foldr = op: nul: list: | ^ 122| let … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:125:9: 124| fold' = n: 125| if n == len | ^ 126| then nul … while calling the 'length' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:123:13: 122| let 123| len = length list; | ^ 124| fold' = n: … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/activation/top-level.nix:68:23: 67| then throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failedAssertions)}" 68| else showWarnings config.warnings baseSystem; | ^ 69| … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `warnings': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … while calling the 'concatLists' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:441:8: 440| mkMountNetOnlineWarns = typeStr: defs: lib.concatLists (map (m: mkOneNetOnlineWarn typeStr m.what m) defs); 441| in concatLists ( | ^ 442| mapAttrsToList … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1096:10: 1095| attrs: 1096| map (name: f name attrs.${name}) (attrNames attrs); | ^ 1097| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:443:16: 442| mapAttrsToList 443| (name: service: | ^ 444| let … while calling the 'concatLists' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:449:13: 448| in 449| concatLists [ | ^ 450| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:450:16: 449| concatLists [ 450| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | ^ 451| "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'" … while calling 'optional' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:450:44: 449| concatLists [ 450| (optional (type == "oneshot" && (restart == "always" || restart == "on-success")) | ^ 451| "Service '${name}.service' with 'Type=oneshot' cannot have 'Restart=always' or 'Restart=on-success'" … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/nixos/modules/system/boot/systemd.nix:445:20: 444| let 445| type = service.serviceConfig.Type or ""; | ^ 446| restart = service.serviceConfig.Restart or "no"; … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `systemd.services.home-manager-diniamo.serviceConfig': … while evaluating the attribute 'mergedValue' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:844:5: 843| # Type-check the remaining definitions, and merge them. Or throw if no definitions. 844| mergedValue = | ^ 845| if isDefined then … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:846:59: 845| if isDefined then 846| if all (def: type.check def.value) defsFinal then type.merge loc defsFinal | ^ 847| else let allInvalid = filter (def: ! type.check def.value) defsFinal; … while calling 'merge' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:583:20: 582| check = isAttrs; 583| merge = loc: defs: | ^ 584| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: … while calling the 'mapAttrs' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:584:9: 583| merge = loc: defs: 584| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | ^ 585| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:584:35: 583| merge = loc: defs: 584| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | ^ 585| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue … while calling 'filterAttrs' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:584:51: 583| merge = loc: defs: 584| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | ^ 585| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:584:86: 583| merge = loc: defs: 584| mapAttrs (n: v: v.value) (filterAttrs (n: v: v ? value) (zipAttrsWith (name: defs: | ^ 585| (mergeDefinitions (loc ++ [name]) elemType defs).optionalValue … while evaluating the attribute 'optionalValue' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:856:5: 855| 856| optionalValue = | ^ 857| if isDefined then { value = mergedValue; } … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:857:7: 856| optionalValue = 857| if isDefined then { value = mergedValue; } | ^ 858| else {}; (8 duplicate frames omitted) … while evaluating definitions from `/nix/store/0fjhbch5dqrhriiqfah01y970mzsq584-source/modules/workstation/home-manager.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/types.nix:588:60: 587| # Push down position info. 588| (map (def: mapAttrs (n: v: { inherit (def) file; value = v; }) def.value) defs))); | ^ 589| emptyValue = { value = {}; }; … while calling the 'getAttr' builtin at :19:19: 18| value = commonAttrs // { 19| outPath = builtins.getAttr outputName strict; | ^ 20| drvPath = strict.drvPath; … while calling the 'derivationStrict' builtin at :9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10| … while evaluating derivation 'home-manager-generation' whose name attribute is located at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/stdenv/generic/make-derivation.nix:331:7 … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/trivial-builders/default.nix:68:17: 67| enableParallelBuilding = true; 68| inherit buildCommand name; | ^ 69| passAsFile = [ "buildCommand" ] … while calling the 'getAttr' builtin at :19:19: 18| value = commonAttrs // { 19| outPath = builtins.getAttr outputName strict; | ^ 20| drvPath = strict.drvPath; … while calling the 'derivationStrict' builtin at :9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10| … while evaluating derivation 'home-manager-files' whose name attribute is located at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/stdenv/generic/make-derivation.nix:331:7 … while evaluating attribute 'buildCommand' of derivation 'home-manager-files' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/trivial-builders/default.nix:68:17: 67| enableParallelBuilding = true; 68| inherit buildCommand name; | ^ 69| passAsFile = [ "buildCommand" ] … while calling the 'concatStringsSep' builtin at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix:352:12: 351| } 352| '' + concatStrings ( | ^ 353| mapAttrsToList (n: v: '' … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1096:10: 1095| attrs: 1096| map (name: f name attrs.${name}) (attrNames attrs); | ^ 1097| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix:353:28: 352| '' + concatStrings ( 353| mapAttrsToList (n: v: '' | ^ 354| insertFile ${ … from call site at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix:355:13: 354| insertFile ${ 355| escapeShellArgs [ | ^ 356| (sourceStorePath v) … while calling 'concatMapStringsSep' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:116:5: 115| # List of input strings 116| list: concatStringsSep sep (map f list); | ^ 117| … while calling the 'concatStringsSep' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:116:11: 115| # List of input strings 116| list: concatStringsSep sep (map f list); | ^ 117| … while calling 'escapeShellArg' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:454:20: 453| */ 454| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'"; | ^ 455| … while calling the 'replaceStrings' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:454:29: 453| */ 454| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'"; | ^ 455| … while evaluating the third argument passed to builtins.replaceStrings … while calling the 'toString' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:454:61: 453| */ 454| escapeShellArg = arg: "'${replaceStrings ["'"] ["'\\''"] (toString arg)}'"; | ^ 455| … from call site at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix:356:16: 355| escapeShellArgs [ 356| (sourceStorePath v) | ^ 357| v.target … while calling 'sourceStorePath' at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix:15:21: 14| 15| sourceStorePath = file: | ^ 16| let … while evaluating a branch condition at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-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/10nliiwlk6x1slk2x9rygzkkzf28zk84-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/10nliiwlk6x1slk2x9rygzkkzf28zk84-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/10nliiwlk6x1slk2x9rygzkkzf28zk84-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".source': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/files.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:900:7: 899| else if def._type or "" == "if" then 900| if isBool def.condition then | ^ 901| if def.condition then … while calling the 'isBool' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:900:10: 899| else if def._type or "" == "if" then 900| if isBool def.condition then | ^ 901| if def.condition then … while evaluating the attribute 'condition' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:1001:15: 1000| { _type = "if"; 1001| inherit condition content; | ^ 1002| }; … from call site at /nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/lib/file-type.nix:114:24: 113| target = mkDefault name; 114| source = mkIf (config.text != null) (mkDefault (pkgs.writeTextFile { | ^ 115| inherit (config) text; … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `home-manager.users.diniamo.home.file."/home/diniamo/.config/fontconfig/conf.d/10-hm-fonts.conf".text': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/xdg.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `home-manager.users.diniamo.xdg.configFile."fontconfig/conf.d/10-hm-fonts.conf".text': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/10nliiwlk6x1slk2x9rygzkkzf28zk84-source/modules/misc/fontconfig.nix': (6 duplicate frames omitted) … while evaluating derivation 'home-manager-path' whose name attribute is located at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/stdenv/generic/make-derivation.nix:331:7 … while evaluating attribute 'passAsFile' of derivation 'home-manager-path' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/trivial-builders/default.nix:69:9: 68| inherit buildCommand name; 69| passAsFile = [ "buildCommand" ] | ^ 70| ++ (derivationArgs.passAsFile or [ ]); … while evaluating the attribute 'passAsFile' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:76:5: 75| # XXX: The size is somewhat arbitrary 76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; | ^ 77| } … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:76:18: 75| # XXX: The size is somewhat arbitrary 76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; | ^ 77| } … in the argument of the not operator at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:76:48: 75| # XXX: The size is somewhat arbitrary 76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; | ^ 77| } … while calling the 'lessThan' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:76:48: 75| # XXX: The size is somewhat arbitrary 76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; | ^ 77| } … while calling the 'stringLength' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:76:21: 75| # XXX: The size is somewhat arbitrary 76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ]; | ^ 77| } … while calling the 'toJSON' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:58:12: 57| nativeBuildInputs buildInputs; 58| pkgs = builtins.toJSON (map (drv: { | ^ 59| paths = … while evaluating list element at index 1 … while evaluating attribute 'paths' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:59:7: 58| pkgs = builtins.toJSON (map (drv: { 59| paths = | ^ 60| # First add the usual output(s): respect if user has chosen explicitly, … while evaluating list element at index 0 at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/build-support/buildenv/default.nix:59:7: 58| pkgs = builtins.toJSON (map (drv: { 59| paths = | ^ 60| # First add the usual output(s): respect if user has chosen explicitly, … while calling the 'getAttr' builtin at :19:19: 18| value = commonAttrs // { 19| outPath = builtins.getAttr outputName strict; | ^ 20| drvPath = strict.drvPath; … while calling the 'derivationStrict' builtin at :9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10| … while evaluating derivation 'neovim-0.10.0' whose name attribute is located at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/stdenv/generic/make-derivation.nix:331:7 … while evaluating attribute 'luaRcContent' of derivation 'neovim-0.10.0' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/wrapper.nix:100:7: 99| inherit wrapperArgs generatedWrapperArgs; 100| luaRcContent = rcContent; | ^ 101| # Remove the symlinks created by symlinkJoin which we need to perform … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/wrapper.nix:50:10: 49| ${luaRcContent} 50| '' + lib.optionalString (!isNull neovimRcContent) '' | ^ 51| vim.cmd.source "${writeText "init.vim" neovimRcContent}" … while calling 'optionalString' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:268:5: 267| # String to return if condition is true 268| string: if cond then string else ""; | ^ 269| … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/strings.nix:268:13: 267| # String to return if condition is true 268| string: if cond then string else ""; | ^ 269| … in the argument of the not operator at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/wrapper.nix:50:31: 49| ${luaRcContent} 50| '' + lib.optionalString (!isNull neovimRcContent) '' | ^ 51| vim.cmd.source "${writeText "init.vim" neovimRcContent}" … while calling the 'isNull' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/wrapper.nix:50:31: 49| ${luaRcContent} 50| '' + lib.optionalString (!isNull neovimRcContent) '' | ^ 51| vim.cmd.source "${writeText "init.vim" neovimRcContent}" … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1575:11: 1574| || pred here (elemAt values 1) (head values) then 1575| head values | ^ 1576| else … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/utils.nix:106:25: 105| # we call vimrcContent without 'packages' to avoid the init.vim generation 106| neovimRcContent = vimUtils.vimrcContent ({ | ^ 107| beforePlugins = ""; … while calling 'vimrcContent' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/vim/plugins/vim-utils.nix:227:18: 226| */ 227| vimrcContent = { | ^ 228| packages ? null, … while calling the 'concatStringsSep' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/vim/plugins/vim-utils.nix:277:7: 276| in 277| lib.concatStringsSep "\n" (lib.filter (x: x != null && x != "") entries); | ^ 278| … while calling the 'filter' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/vim/plugins/vim-utils.nix:277:34: 276| in 277| lib.concatStringsSep "\n" (lib.filter (x: x != null && x != "") entries); | ^ 278| … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/vim/plugins/vim-utils.nix:277:46: 276| in 277| lib.concatStringsSep "\n" (lib.filter (x: x != null && x != "") entries); | ^ 278| … in the left operand of the AND (&&) operator at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/vim/plugins/vim-utils.nix:277:59: 276| in 277| lib.concatStringsSep "\n" (lib.filter (x: x != null && x != "") entries); | ^ 278| … while calling the 'concatStringsSep' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/pkgs/applications/editors/neovim/utils.nix:108:20: 107| beforePlugins = ""; 108| customRC = lib.concatStringsSep "\n" (pluginRC ++ [customRC]); | ^ 109| packages = null; … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/default.nix:112:16: 111| inherit plugins extraLuaPackages extraPython3Packages; 112| customRC = vimOptions.builtConfigRC; | ^ 113| }; … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `vim.builtConfigRC': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:213:9: 212| in 213| baseSystemAssertWarn vimConfig; | ^ 214| }; … while calling 'showWarnings' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:28: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:33: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … while calling 'foldr' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:121:20: 120| */ 121| foldr = op: nul: list: | ^ 122| let … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:124:15: 123| len = length list; 124| fold' = n: | ^ 125| if n == len … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:127:14: 126| then nul 127| else op (elemAt list n) (fold' (n + 1)); | ^ 128| in fold' 0; … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:47: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … while calling the 'trace' builtin at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/trivial.nix:867:50: 866| 867| showWarnings = warnings: res: lib.foldr (w: x: warn w x) res warnings; | ^ 868| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:127:34: 126| then nul 127| else op (elemAt list n) (fold' (n + 1)); | ^ 128| in fold' 0; … while calling 'fold'' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/lists.nix:124:15: 123| len = length list; 124| fold' = n: | ^ 125| if n == len … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:207:21: 206| mapResult = result: (concatStringsSep "\n" (map mkVimrcSection result)); 207| vimConfig = resolveDag { | ^ 208| name = "vim config script"; … while calling 'resolveDag' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:108:18: 107| 108| resolveDag = { | ^ 109| name, … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:122:14: 121| if sortedDag ? result 122| then mapResult sortedDag.result | ^ 123| else abort ("Dependency cycle in ${name}: " + toJSON sortedDag); … while calling 'mapResult' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:206:21: 205| 206| mapResult = result: (concatStringsSep "\n" (map mkVimrcSection result)); | ^ 207| vimConfig = resolveDag { … while calling the 'concatStringsSep' builtin at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:206:30: 205| 206| mapResult = result: (concatStringsSep "\n" (map mkVimrcSection result)); | ^ 207| vimConfig = resolveDag { … while calling 'mkVimrcSection' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/dag.nix:151:20: 150| 151| mkVimrcSection = section: '' | ^ 152| " SECTION: ${section.name} … while evaluating the attribute 'data' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/dag.nix:96:42: 95| then { 96| result = map (v: {inherit (v) name data;}) sorted.result; | ^ 97| } … while evaluating the attribute 'data' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/dag.nix:87:9: 86| name = n; 87| data = v.data; | ^ 88| after = v.after ++ dagBefore dag n; … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/dag.nix:87:16: 86| name = n; 87| data = v.data; | ^ 88| after = v.after ++ dagBefore dag n; … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `vim.configRC.mappings.data': (15 duplicate frames omitted) … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:192:23: 191| ]; 192| mapConfig = wrapLuaConfig {luaConfig = concatStringsSep "\n" (map (v: concatStringsSep "\n" v) maps);}; | ^ 193| in … while calling 'wrapLuaConfig' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/lua.nix:8:19: 7| in rec { 8| wrapLuaConfig = { | ^ 9| luaBefore ? "", … while calling the 'concatStringsSep' builtin at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/lua.nix:14:7: 13| lua << EOF 14| ${concatStringsSep "\n" [luaBefore luaConfig luaAfter]} | ^ 15| EOF … while calling the 'concatStringsSep' builtin at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:192:50: 191| ]; 192| mapConfig = wrapLuaConfig {luaConfig = concatStringsSep "\n" (map (v: concatStringsSep "\n" v) maps);}; | ^ 193| in … while calling anonymous lambda at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:192:78: 191| ]; 192| mapConfig = wrapLuaConfig {luaConfig = concatStringsSep "\n" (map (v: concatStringsSep "\n" v) maps);}; | ^ 193| in … while calling the 'concatStringsSep' builtin at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:192:81: 191| ]; 192| mapConfig = wrapLuaConfig {luaConfig = concatStringsSep "\n" (map (v: concatStringsSep "\n" v) maps);}; | ^ 193| in … while calling anonymous lambda at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:91:12: 90| toLuaBindings = mode: maps: 91| map (value: '' | ^ 92| vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${toLuaObject value.action}, ${toLuaObject value.config}) … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:92:102: 91| map (value: '' 92| vim.keymap.set(${toLuaObject mode}, ${toLuaObject value.key}, ${toLuaObject value.action}, ${toLuaObject value.config}) | ^ 93| '') (genMaps mode maps); … while calling 'toLuaObject' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/lua.nix:63:17: 62| 63| toLuaObject = args: | ^ 64| if isAttrs args … while evaluating a branch condition at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/lua.nix:64:5: 63| toLuaObject = args: 64| if isAttrs args | ^ 65| then … while calling the 'isAttrs' builtin at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/lib/lua.nix:64:8: 63| toLuaObject = args: 64| if isAttrs args | ^ 65| then … while evaluating the attribute 'config' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:78:43: 77| in { 78| inherit (normalizedAction) action config; | ^ 79| inherit key; … while evaluating the attribute 'config' at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:65:7: 64| # Extract the values of the config options that have been explicitly set by the user 65| config = | ^ 66| filterAttrs (_: v: v != null) … from call site at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:66:9: 65| config = 66| filterAttrs (_: v: v != null) | ^ 67| (getAttrs (attrNames mapConfigOptions) action); (6 duplicate frames omitted) … while calling anonymous lambda at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/wrapper/rc/config.nix:66:25: 65| config = 66| filterAttrs (_: v: v != null) | ^ 67| (getAttrs (attrNames mapConfigOptions) action); … while evaluating the attribute 'desc' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:984:20: 983| value: 984| { inherit name value; }; | ^ 985| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1248:43: 1247| f: 1248| listToAttrs (map (n: nameValuePair n (f n)) names); | ^ 1249| … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:576:28: 575| names: 576| attrs: genAttrs names (name: attrs.${name}); | ^ 577| … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:576:34: 575| names: 576| attrs: genAttrs names (name: attrs.${name}); | ^ 577| … while calling anonymous lambda at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/attrsets.nix:1205:18: 1204| mapAttrs 1205| (name: value: | ^ 1206| if isAttrs value && cond value … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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/2wl1v90i6q5fy2lxxz1d75xikvqvib43-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 attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:809:9: 808| in warnDeprecation opt // 809| { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 810| inherit (res.defsFinal') highestPrio; … while evaluating the option `vim.maps.normal."".desc': (10 duplicate frames omitted) … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix': … from call site at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: 824| defs' = concatMap (m: 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) | ^ 826| ) defs; … while calling 'dischargeProperties' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: 895| */ 896| dischargeProperties = def: | ^ 897| if def._type or "" == "merge" then … while evaluating a branch condition at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: 896| dischargeProperties = def: 897| if def._type or "" == "merge" then | ^ 898| concatMap dischargeProperties def.contents … while evaluating the attribute 'value' at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: 606| (n: value: 607| [{ inherit (module) file; inherit value; }] | ^ 608| ) … while selecting an attribute at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix:25:70: 24| (mkBinding mappings.cycleNext ":BufferLineCycleNext" mappings.cycleNext.description) 25| (mkBinding mappings.cyclePrevious ":BufferLineCyclePrev" mappings.cyclePrevious.description) | ^ 26| (mkBinding mappings.pick ":BufferLinePick" mappings.pick.description) error: expected a set but found a string: "" ┏━ 1 Errors: ⋮ ┃ ┃ … while evaluating definitions from `/nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix': ┃ ┃ … from call site ┃ at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:825:137: ┃ 824| defs' = concatMap (m: ┃ 825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value)) ┃ | ^ ┃ 826| ) defs; ┃ ┃ … while calling 'dischargeProperties' ┃ at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:896:25: ┃ 895| */ ┃ 896| dischargeProperties = def: ┃ | ^ ┃ 897| if def._type or "" == "merge" then ┃ ┃ … while evaluating a branch condition ┃ at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:897:5: ┃ 896| dischargeProperties = def: ┃ 897| if def._type or "" == "merge" then ┃ | ^ ┃ 898| concatMap dischargeProperties def.contents ┃ ┃ … while evaluating the attribute 'value' ┃ at /nix/store/2wl1v90i6q5fy2lxxz1d75xikvqvib43-source/lib/modules.nix:607:53: ┃ 606| (n: value: ┃ 607| [{ inherit (module) file; inherit value; }] ┃ | ^ ┃ 608| ) ┃ ┃ … while selecting an attribute ┃ at /nix/store/skf7vmaqpzvpksq69qdv69bbdzw6wcyq-source/modules/plugins/tabline/nvim-bufferline/config.nix:25:70: ┃ 24| (mkBinding mappings.cycleNext ":BufferLineCycleNext" mappings.cycleNext.description) ┃ 25| (mkBinding mappings.cyclePrevious ":BufferLineCyclePrev" mappings.cyclePrevious.description) ┃ | ^ ┃ 26| (mkBinding mappings.pick ":BufferLinePick" mappings.pick.description) ┃ ┃ error: expected a set but found a string: "" ┣━━━ ┗━ ∑ ⚠ Exited with 1 errors reported by nix at 11:37:29 after 14s Error: 0: Command exited with status Exited(1) Location: src/commands.rs:151 ```
diniamo commented 3 months ago

This builds, and neovim runs without errors, however bufferline still doesn't appear.

horriblename commented 3 months ago

sorry for the mess, I rebased this PR onto main, as the other one isn't going anywhere

diniamo commented 3 months ago

Oh, I was kinda confused.

Either way I can't seem to figure out why bufferline doesn't work, so..

horriblename commented 3 months ago

needs to set showtabline to 2 I believe

FrothyMarrow commented 3 months ago

needs to set showtabline to 2 I believe

There is an option called auto_toggle_bufferline, it was incorrectly set to false. It is used to manually enable/disable the bufferline, setting it to true would fix the issue. Also shottabline should be avoided for this because it is updated internally in nvim-bufferline.

diniamo commented 3 months ago

Nope, I found the issue: https://github.com/NotAShelf/nvf/blob/d10b1fc366480f77590b3020d1b136e539277269/modules/plugins/tabline/nvim-bufferline/nvim-bufferline.nix#L26

raaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaf

diniamo commented 3 months ago

I'm ready to merge then

FrothyMarrow commented 3 months ago

Nope, I found the issue:

https://github.com/NotAShelf/nvf/blob/d10b1fc366480f77590b3020d1b136e539277269/modules/plugins/tabline/nvim-bufferline/nvim-bufferline.nix#L26

raaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaf

This wouldn't fix the issue where the bufferline is disabled by default.

diniamo commented 3 months ago

What do you mean?

FrothyMarrow commented 3 months ago

What do you mean?

The bufferline is hidden by default.

Screenshot 2024-06-16 at 1 07 29 PM
diniamo commented 3 months ago

That's quite literally the issue it solves?

FrothyMarrow commented 3 months ago

That's quite literally the issue it solves?

It is an existing issue on the latest commit.

diniamo commented 3 months ago

I never had that happen.

horriblename commented 3 months ago

bufferline still missing for me

horriblename commented 3 months ago

yea auto_toggle_bufferline fixed it for me

diniamo commented 3 months ago

Oh I had that on, because I'd use it anyway. I looked at bufferline's codebase, and I get what it's supposed to do, but they early return on the update function based on that setting, and the same update function is used to show bufferline initially, I guess we default it to true?

FrothyMarrow commented 3 months ago

Oh I had that on, because I'd use it anyway. I looked at bufferline's codebase, and I get what it's supposed to do, but they early return on the update function based on that setting, and the same update function is used to show bufferline initially, I guess we default it to true?

Please confirm that the defaults match with the ones set by the plugin here.

diniamo commented 3 months ago

@FrothyMarrow I'm not so sure about that, I'm pretty sure nvf defines its own defaults for multiple plugins, based on raf's tastes or something.

FrothyMarrow commented 3 months ago

@FrothyMarrow I'm not so sure about that, I'm pretty sure nvf defines its own defaults for multiple plugins, based on raf's tastes or something.

You're right, It is my preference. If it is just a change in cosmetics, I don't mind changing them. For a new user, it is easier to work with the defaults provided by the plugin, and it is easier for us to debug the config when something breaks. I don't think @NotAShelf has a particular distaste for either of these approaches from my past contributions.

One example where these problems become apparent is when a user wants to have the defaults set by the plugin. Since we have removed the option to filter out null options, the user is no longer able to easily remove the default config set by nvf. They have to dig through the source code to figure out what the expected default is.