From 54c44c09fa9326f609358a419e51a19dfdbba6af Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 2 Jul 2025 10:58:47 +0100 Subject: [PATCH] flake/dev: prefix nixvim's nixpkgs to devshell NIX_PATH --- flake/dev/devshell.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/flake/dev/devshell.nix b/flake/dev/devshell.nix index 1eab420c..2babef5d 100644 --- a/flake/dev/devshell.nix +++ b/flake/dev/devshell.nix @@ -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`