flake/dev: prefix nixvim's nixpkgs to devshell NIX_PATH

This commit is contained in:
Matt Sturgeon 2025-07-02 10:58:47 +01:00
parent 30d8be8628
commit 54c44c09fa

View file

@ -20,6 +20,14 @@
config.formatter
];
env = [
{
# Prefix NIX_PATH with nixvim's nixpkgs while in the devshell
name = "NIX_PATH";
eval = "nixpkgs=$NIXPKGS_PATH:\${NIX_PATH:-}";
}
];
commands =
let
# Thanks to this, the user can choose to use `nix-output-monitor` (`nom`) instead of plain `nix`