update nixvim config

This commit is contained in:
2026-07-31 01:20:08 +02:00
parent 0b73b99654
commit ee0447931e
7 changed files with 305 additions and 30 deletions
+28
View File
@@ -0,0 +1,28 @@
{
programs.nixvim.lsp = {
servers = {
lua_ls.enable = true;
nixd = {
enable = true;
config = {
nixd = {
nixpkgs = {
expr = ''import (builtins.getFlake "/home/user/nix-config").inputs.nixpkgs { }'';
};
formatting = {
command = "nixfmt";
};
options = {
nixos = {
expr = ''(builtins.getFlake "/home/user/nix-config").nixosConfigurations.desktop.options'';
};
home_manager = {
expr = ''(builtins.getFlake "/home/user/nix-config").nixosConfigurations.desktop.options.home-manager.users.type.getSubOptions []'';
};
};
};
};
};
};
};
}