Stuck on older version

So I am new to nixOS, I installed it like 10 days ago. Yesterday I faced an issue I wasn’t able to fix because I was trying to get home-manager and flake to work but I did something wrong and it broke the nixos-rebuild command and I couldn’t fix it so I just did a fresh install.

Now I am facing a weird issue, I had the 24.05 ISO from which I installed the system. Right now I am on 24.11.


The issue I am facing is my neovim is stuck on version 9.5 I use astroNvim and that requires me to have version 10 +, now idk what’s going on here.

The nix-repo shows that the neovim for 24.11 channel is 10.2, that’s why I upgraded from 24.05 but the neovim isn’t getting updated to the latest version.

Hey, welcome to NixOS!

One possible reason for this would be that you installed neovim using nix-env instead of adding it to systemPackages. You can check that by running nix-env -q or which nvim.

Things in nix-env profiles will always remain the same, even if your NixOS configuration changes. They will take precedence in your $PATH, so even adding neovim to the OS configuration will seemingly not change the version installed.

Hi,

No I didn’t install neovim with nix-env

╰─ nix-env -q                                                                                                                                                       ─╯
home-manager-path
╰─ which nvim                                                                                                                                                       ─╯
/home/zero/.nix-profile/bin/nvim

it’s in the /etc/nixos/configuration.nix