move nvim dev tools to devtools.nix

This commit is contained in:
Sean Buckley 2024-10-26 02:27:35 -04:00
parent 592b767717
commit a6dded78f8
11 changed files with 17 additions and 58 deletions

View file

@ -8,7 +8,23 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; environment.systemPackages = with pkgs;
[ [
black
cargo
efm-langserver
errcheck
go
gopls
lua-language-server
nil
nodePackages.prettier
nodePackages.typescript-language-server
pyright
rust-analyzer
rustc
rustc.llvmPackages.lld rustc.llvmPackages.lld
rustfmt
vscode-langservers-extracted
yaml-language-server
]; ];
}; };
} }

View file

@ -2,8 +2,7 @@
{ {
environment.variables.EDITOR = "hx"; environment.variables.EDITOR = "hx";
environment.systemPackages = [ environment.systemPackages = [
pkgs.bck-nvim-base pkgs.bck-nvim
pkgs.bck-nvim-tools
]; ];
users.users.sean = { users.users.sean = {

View file

@ -1,49 +0,0 @@
{ symlinkJoin
, runCommand
, black
, cargo
, efm-langserver
, errcheck
, go
, gopls
, lua-language-server
, nil
, nodePackages
, pyright
, rust-analyzer
, rustc
, rustfmt
, vscode-langservers-extracted
, yaml-language-server
}:
let
symlinkBin = path: runCommand "symlinkBin" { } ''
mkdir -p $out/bin
ln -s "${path}" $out/bin/
'';
in
symlinkJoin {
name = "bck-nvim-tools";
paths = [
black
cargo
efm-langserver
errcheck
go
gopls
lua-language-server
nil
pyright
rust-analyzer
rustc
rustfmt
vscode-langservers-extracted
yaml-language-server
(symlinkBin "${nodePackages.prettier}/bin/prettier")
(symlinkBin "${nodePackages.typescript-language-server}/bin/typescript-language-server")
];
}

View file

@ -1,7 +0,0 @@
{ callPackage }:
callPackage ./bck-nvim-base {
extraBinPaths = [
(callPackage ./bck-nvim-tools.nix { })
];
}