From 88b54f083b4edab9028d6b8e41e0c79ed6ed7cce Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Sat, 11 Jan 2025 00:48:48 -0300 Subject: [PATCH] feat(neovim): set nixpkgs variable for nixd --- modules/home-manager/programs/neovim/lsp.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/home-manager/programs/neovim/lsp.nix b/modules/home-manager/programs/neovim/lsp.nix index 47ea0d3..f0d123b 100644 --- a/modules/home-manager/programs/neovim/lsp.nix +++ b/modules/home-manager/programs/neovim/lsp.nix @@ -84,6 +84,9 @@ in nixd = { settings = { nixd = { + nixpkgs = { + expr = 'import (builtins.getFlake (${location})).inputs.nixpkgs { }', + }, options = { nixos = { expr = '(builtins.getFlake ("${location}")).nixosConfigurations.${hostname}.options',