mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
move nvim dev tools to devtools.nix
This commit is contained in:
parent
592b767717
commit
a6dded78f8
11 changed files with 17 additions and 58 deletions
|
@ -8,7 +8,23 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
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
|
||||
rustfmt
|
||||
vscode-langservers-extracted
|
||||
yaml-language-server
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
{
|
||||
environment.variables.EDITOR = "hx";
|
||||
environment.systemPackages = [
|
||||
pkgs.bck-nvim-base
|
||||
pkgs.bck-nvim-tools
|
||||
pkgs.bck-nvim
|
||||
];
|
||||
|
||||
users.users.sean = {
|
||||
|
|
|
@ -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")
|
||||
];
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{ callPackage }:
|
||||
|
||||
callPackage ./bck-nvim-base {
|
||||
extraBinPaths = [
|
||||
(callPackage ./bck-nvim-tools.nix { })
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue