I set up some simple nixvim configuration (attached below), but when I try to switch to a new home-manager generation, I get this error:
error: Module `:anon-6:anon-1' has an unsupported attribute `colorschemes'. This is caused by introducing a top-level `config' or `options' attribute. Add configuration attributes immediately on the top level instead, or move all of them (namely: colorschemes enable package plugins) into the explicit `config' attribute.
I have attached some pastebin’s so anyone looking can get the full picture:
I added nixvim to the extraSpecialArgs for home-manager. I then tried to switch to a new home-manager generation but I still get the same error.
I tried doing the other method where I remove nixvim from the inputs of the nixvim.nix file, but I don’t add nixvim to the extraSpecialArgs in flake.nix but I still get this error.
I think I did like all possible combinations of adding to extraSpecialArgs and adding/removing nixvim from the inputs in nixvim.nix, but alas I still get these errors.
Maybe I’m just confusing your instructions here?