Skip to content
Discussion options

You must be logged in to vote

This shouldn't cause inf-recursion, but the first issue I spotted is:

   programs.nixvim = {
+      imports = [ ./home/nixvim ];
-      enable = true;
       config = {
+          enable = true;
-          imports = [ ./home/nixvim ];
       };
   };

imports is not a config option; it is a special module-system attr that lists other modules to import. enable is a config option, and should be defined under the special module-system attr config to separate it from imports and options.

In this case, you don't actually need to say config. That's usually only needed if you also declare options. When you only have config definitions and imports listed, you can use the "shorthand" module shape:

p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sigechaishijie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants