Skip to content

Installing neovim 0.10 in NixOS 24.05 with home-manager #1772

Closed Answered by MattSturgeon
gmile asked this question in Q&A
Discussion options

You must be logged in to vote

You can use home-manager.extraSpecialArgs to pass in additional module args. In this case, your flake inputs.

e.g.

  home-manager.useGlobalPkgs = true; 
  home-manager.useUserPackages = true;
+ home-manager.extraSpecialArgs = {inherit inputs;};
  home-manager.sharedModules = [
    nixvim.homeManagerModules.nixvim
  ];
  home-manager.users.eugene = import ./home.nix;
- { config, pkgs, ... }: {
+ { inputs, config, pkgs, ... }: {
   home.stateVersion = "24.05";

   programs.nixvim = {
-    package = # what do I put here ???
+    package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.neovim;
     enable = true;
     enableMan = true;
     defaultEditor = true;
   };
 }

You can make t…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gmile
Comment options

You must be logged in to vote
3 replies
@MattSturgeon
Comment options

@gmile
Comment options

@MattSturgeon
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