2024-05-15 17:37:03 +02:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
inherit (config.grimmShared) enable tooling graphical;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
config = lib.mkIf (enable && tooling.enable) {
|
|
|
|
environment.systemPackages =
|
|
|
|
with pkgs;
|
2024-05-15 23:24:35 +02:00
|
|
|
[ pkg-config ] ++ lib.optionals graphical [ jetbrains.clion ];
|
2024-05-15 17:37:03 +02:00
|
|
|
|
|
|
|
grimmShared.tooling.lang_servers = [
|
|
|
|
{
|
2024-05-15 23:24:35 +02:00
|
|
|
lsp = {
|
|
|
|
package = pkgs.rust-analyzer;
|
|
|
|
lspconf_mod_name = "rust_analyzer";
|
|
|
|
};
|
|
|
|
fmt = {
|
|
|
|
package = pkgs.rustfmt;
|
|
|
|
includes = [ "*.rs" ];
|
|
|
|
};
|
2024-05-15 17:37:03 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|