feat: nix lsp, enable features, nixfmt
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user