-
I've setup a basic config with some plugins, and I'm now trying to add it as a home-manager module to replace my current nixvim setup. I added my config flake as This builds successfully, but running I've also tried What is the correct way to include my config in home-manager? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
did you enable it? Putting homeModule in your home manager imports would import the module but you also have to enable it. And if you already have an nvim installed home manager will yell at you. Here are the module options available https://nixcats.org/nixCats_hm_options.html The module inherits the packages from your flake and also allows you to modify them further. Did you override luaPath in the module? If so it would be looking in the new location for the config which would be wrong. as far as the other thing you tried:This is a package not a module. # no
imports = [
inputs.nvim-config.packages.x86_64-linux.nvim
];
# yes
home.packages = [
inputs.nvim-config.packages.x86_64-linux.nvim
]; So yeah, __ignoreNulls is not an option, its an attribute of a derivation that you are feeding into your modules list |
Beta Was this translation helpful? Give feedback.
-
Also if you could put further questions like this in discussions, I would appreciate it as then maybe other people will find it Edit: thanks, I can move it apparently, who knew! |
Beta Was this translation helpful? Give feedback.
-
The flake is copied from the template, so I added
I didn't
Noted, thanks for the correction. There should be a button on the right to allow you to convert the issue to a discussion if you want. EDIT: |
Beta Was this translation helpful? Give feedback.
You should be able to:
assuming your defaultPackageName passed to mkHomeModules at the end of your template is "nvim"
I use it in my personal config in this manner and the tests also test module import so it should work if you are importing it correctly