Misterio77 / nix-colors

Modules and schemes to make theming with Nix awesome.
GNU General Public License v3.0
469 stars 38 forks source link

`error: infinite recursion encountered` when trying out example in readme #9

Closed auroraanna closed 2 years ago

auroraanna commented 2 years ago

The example of a config for kitty and qutebrowser in the readme gives an error when trying to switch:

error: infinite recursion encountered

       at /nix/store/f5hg16l66fhp7qpszkn82fazh2x4pnin-source/lib/modules.nix:365:28:

          364|         builtins.addErrorContext (context name)
          365|           (args.${name} or config._module.args.${name})
             |                            ^
          366|       ) (lib.functionArgs f);
(use '--show-trace' to show detailed location information)

I'm using exactly the config form the readme but i don't understand what the error is saying at all.

Misterio77 commented 2 years ago

That's weird. Are you using flakes or fetchTarball?

auroraanna commented 2 years ago

flakes

auroraanna commented 2 years ago

this is my flake if you wanna have a look at it

Misterio77 commented 2 years ago

You need to pass the nix-colors input from your flake into your home nix files using extraSpecialArgs. Here's a fix: https://codeberg.org/papojari/home-manager-config/pulls/1

Misterio77 commented 2 years ago

Let me know if this works! :)

auroraanna commented 2 years ago

Yes it works! Thanks

Misterio77 commented 2 years ago

You're very welcome!

Feel free to report any other issues, if you come across them.