feat: nix lsp, enable features, nixfmt

This commit is contained in:
2025-01-23 08:56:35 +00:00
parent fbffcffe21
commit b076747661
3 changed files with 5 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ return {
"ts_ls", "ts_ls",
"lua_ls", "lua_ls",
"rust_analyzer", "rust_analyzer",
"nil_ls",
}, },
handlers = { handlers = {
function(server) function(server)

View File

@@ -33,6 +33,9 @@
modules = [ modules = [
./hosts/${host.name}/configuration.nix ./hosts/${host.name}/configuration.nix
home-manager.nixosModules.home-manager home-manager.nixosModules.home-manager
{
nix.settings.experimental-features = [ "nix-command" "flakes" ];
}
] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]); ] ++ (if host.isWSL then [ nixos-wsl.nixosModules.default ] else [ ]);
}; };
}) hosts); }) hosts);

View File

@@ -18,6 +18,7 @@
git git
gcc gcc
rustup rustup
nixfmt-rfc-style
]; ];
config.programs.nix-ld.enable = true; config.programs.nix-ld.enable = true;
} }