Nixvim: using (standalone) in another configuration (nixos flake)

I need help activating my custom nixvim configuration, precisely in this part of the manual, what else should i add or do so that when i type $ nvim on the terminal my configuration shows up?

im using my personal flake that adds the input to my nixvim flake in the following module just as in the manual home module:

{ config, inputs, ...}
{
  config.home.packages = with pkgs; [
    inputs.nixvim-wrapped.packages.${system}.default
  ];
}

i add the file to my home-manager configuration and activate using home-manager switch --flake .#user with the termial on the flake dir.

also testing the nixvim flake dir with nix run . opens up my configuration without problems, so what really missing is adding it to my home manager or nixos

after doing so nvim remains unchanged, what else i need to do so that this works?

Make sure you remember to source the session vars if you’re not using the NixOS module: Home Manager Manual

Your system $PATH entry may also take priority depending on how exactly your shell is set up.

I managed to expose my nixos configuration repo here: flakes / nixos · GitLab
please do check why it isnt working.

Hey so turns out very early when i was learning nix and configuring my computer i must have mistaken nix-env by nix-shell and added neovim imperatively.
took me several weeks and removing everything on my computer to figure this out.
after removing everything now works as expected.
thanks all for the help

1 Like