-
-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Infinite recursion encountered #83
Comments
I think this might be related to #66... Have you tried just setting |
was not related to nixvim but some weird behaviour of home-manager itself |
@gilice did you figure out what exactly caused the error? |
@gador take this with two packets of salt because I didn't care enough to reproduce it. What seemed to be happening was that if I add a home-manager module at a top-level, eg, home-manager.users.user1 = {
imports = [nixvim.homeManagerModules.nixvim];
}; it seems to work. However, if I put it somewhere in a file that is imported, adding one level of nesting: configuration.nix home-manager.users.user1 = {
imports = [
./editr-config.nix
];
}; and then in editr-config.nix {pkgs, lib}: {
imports = [nixvim.homeManagerModules.nixvim];
} it throws the error message. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cannot-get-nixvim-to-install-as-a-module-in-home-manager/49643/2 |
It's because you didn't pass the top-level input into the module system via Only |
Plugin affected: nixvim home-manager module
Nixpkgs channel: unstable
Home-manager version: (if applicable)
Nixvim version: db8a2c0
Description
Even a simple import will cause the following stack trace:
Config
Your nixvim config
The text was updated successfully, but these errors were encountered: