Skip to content

Importing flake.homeModule in home-manager results in unconfigured neovim #68

Answered by BirdeeHub
MATOO-Dev asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to:

{ config, pkgs, lib, inputs }: {
  imports = [ inputs.yournvimflake.homeModule ];
  config = {
    nvim.enable = true;
    # nvim.packageNames = [ "nvim" ]; # <-- this should already be the default value if defaultPackageName is nvim
    # nvim.nixpkgs_version = inputs.nixpkgs; # <- optional
  };
}

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

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@BirdeeHub
Comment options

Answer selected by MATOO-Dev
@BirdeeHub
Comment options

@MATOO-Dev
Comment options

@BirdeeHub
Comment options

@BirdeeHub
Comment options

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
Converted from issue

This discussion was converted from issue #67 on December 03, 2024 02:43.