From 7355c4fbea41dae06a2aa931a01098c43fa7e494 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 1 Dec 2024 22:15:38 -0600 Subject: [PATCH] fix(hm/price): ensure neovim gets current env vars --- users/price/conf/nvim/default.nix | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/users/price/conf/nvim/default.nix b/users/price/conf/nvim/default.nix index 32474d3f..1d224ab8 100644 --- a/users/price/conf/nvim/default.nix +++ b/users/price/conf/nvim/default.nix @@ -1,12 +1,38 @@ { pkgs, + lib, ... }: { + programs.neovim = { + enable = true; + package = pkgs.neovim; + extraWrapperArgs = [ + "--suffix" + "LD_LIBRARY_PATH" + ":" + "${lib.makeLibraryPath [ + pkgs.sqlite + ]}" + "--suffix" + "LIBRARY_PATH" + ":" + "${lib.makeLibraryPath [ + pkgs.stdenv.cc.cc + pkgs.zlib + ]}" + "--suffix" + "PKG_CONFIG_PATH" + ":" + "${lib.makeSearchPathOutput "dev" "lib/pkgconfig" [ + pkgs.stdenv.cc.cc + pkgs.zlib + ]}" + ]; + }; home = { packages = with pkgs; [ neovide - neovim bun ]; };