dedicated-settings-file #3
|
@ -3,9 +3,7 @@ let
|
|||
settings = import ./../settings.nix;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./language-server.nix
|
||||
]
|
||||
imports = lib.optionals settings.dev.lsp.enable [ ./lsp.nix ]
|
||||
++ lib.optionals settings.virtualisation.docker-rootless.enable [ ./docker-rootless.nix ]
|
||||
++ lib.optionals settings.virtualisation.qemu.enable [ ./qemu.nix ]
|
||||
++ lib.optionals settings.dev.platformio [ ./platformio.nix ]
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{ pkgs, config, ... }: {
|
||||
# various language server used by IDEs and by my Neovim config
|
||||
environment.systemPackages = with pkgs; [
|
||||
shellcheck
|
||||
lua-language-server
|
||||
pyright
|
||||
arduino-language-server
|
||||
clang
|
||||
];
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, lib, ... }:
|
||||
let
|
||||
settings = import ./../settings.nix;
|
||||
in
|
||||
{
|
||||
# various language server used by IDEs and by Neovim lsp-config
|
||||
environment.systemPackages = with pkgs;
|
||||
lib.optionals settings.dev.lsp.shellcheck [ shellcheck ]
|
||||
++ lib.optionals settings.dev.lsp.luals [ lua-language-server ]
|
||||
++ lib.optionals settings.dev.lsp.pyright[ pyright ]
|
||||
++ lib.optionals settings.dev.lsp.arduino [ arduino-language-server ]
|
||||
++ lib.optionals settings.dev.lsp.clangd [ clang ];
|
||||
}
|
10
settings.nix
10
settings.nix
|
@ -28,6 +28,16 @@ with import <nixpkgs> {}; {
|
|||
platformio = true;
|
||||
latex = true;
|
||||
dotnet = false;
|
||||
|
||||
lsp = {
|
||||
enable = true;
|
||||
# various language server
|
||||
shellcheck = true;
|
||||
luals = true;
|
||||
pyright = true;
|
||||
arduino = true;
|
||||
clangd = true;
|
||||
};
|
||||
};
|
||||
|
||||
dvd = true; # enable DVD decryption + ripping via Handbrake
|
||||
|
|
Loading…
Reference in New Issue