just manage lsp servers and other paraphernalia manually

Ryan Gibb 7854df86 bc65f3de

Changed files
+30 -34
home
hosts
gecko
vulpine
modules
templates
-1
flake.nix
···
home.packages = with pkgs; [ home-manager ];
custom = {
machineColour = "red";
-
nvim-lsps = true;
};
}
];
···
home.packages = with pkgs; [ home-manager ];
custom = {
machineColour = "red";
};
}
];
+2 -26
home/nvim/default.nix
···
cfg = config.custom;
in
{
-
options.custom.nvim-lsps = lib.mkEnableOption "nvim-lsps";
-
config = {
xdg.configFile = {
"ftplugin/mail.vim".text = ''
···
enable = true;
viAlias = true;
vimAlias = true;
-
extraPackages =
-
with pkgs;
-
[
-
ripgrep
-
nixd
-
]
-
++ lib.lists.optionals cfg.nvim-lsps [
-
nixfmt-rfc-style
-
# stop complaining when launching but a devshell is better
-
ocamlPackages.ocaml-lsp
-
ocamlPackages.ocamlformat
-
lua-language-server
-
pyright
-
black
-
ltex-ls
-
jdt-language-server
-
nodejs_18
-
clang-tools
-
typst-lsp
-
rust-analyzer
-
rustfmt
-
];
extraLuaConfig = builtins.readFile ./init.lua;
# undo transparent background
# + "colorscheme gruvbox";
···
})
'';
}
-
]
-
++ lib.lists.optionals cfg.nvim-lsps [
{
plugin = nvim-lspconfig;
type = "lua";
···
cfg = config.custom;
in
{
config = {
xdg.configFile = {
"ftplugin/mail.vim".text = ''
···
enable = true;
viAlias = true;
vimAlias = true;
+
extraPackages = with pkgs; [ ripgrep ];
extraLuaConfig = builtins.readFile ./init.lua;
# undo transparent background
# + "colorscheme gruvbox";
···
})
'';
}
+
{
plugin = nvim-lspconfig;
type = "lua";
+28 -2
hosts/gecko/default.nix
···
printing = true;
gui.i3 = true;
gui.sway = true;
-
ocaml = true;
workstation = true;
autoUpgrade.enable = true;
homeManager.enable = true;
···
};
custom = {
machineColour = "blue";
-
nvim-lsps = true;
mail.enable = true;
calendar.enable = true;
battery.enable = true;
···
))
moreutils
gnome-calendar
cargo
rustc
rust-analyzer
];
services.gnome.gnome-keyring.enable = true;
···
printing = true;
gui.i3 = true;
gui.sway = true;
workstation = true;
autoUpgrade.enable = true;
homeManager.enable = true;
···
};
custom = {
machineColour = "blue";
mail.enable = true;
calendar.enable = true;
battery.enable = true;
···
))
moreutils
gnome-calendar
+
+
# nix
+
nixd
+
nixfmt-rfc-style
+
# ocaml
+
opam
+
pkg-config
+
ocamlPackages.ocaml-lsp
+
ocamlPackages.ocamlformat
+
# rust
cargo
rustc
rust-analyzer
+
rustfmt
+
# haskell
+
cabal-install
+
ghc
+
haskell-language-server
+
# python
+
pyright
+
black
+
# jave
+
jdt-language-server
+
nodejs_18
+
# c
+
clang-tools
+
# lua
+
lua-language-server
+
# other
+
ltex-ls
+
typst-lsp
];
services.gnome.gnome-keyring.enable = true;
-1
hosts/vulpine/default.nix
···
services.kdeconnect.enable = true;
custom = {
machineColour = "magenta";
-
nvim-lsps = true;
mail.enable = true;
calendar.enable = true;
battery.enable = true;
···
services.kdeconnect.enable = true;
custom = {
machineColour = "magenta";
mail.enable = true;
calendar.enable = true;
battery.enable = true;
-1
modules/default.nix
···
./laptop.nix
./nix-cache.nix
./nix-index.nix
-
./ocaml.nix
./printing.nix
./rmfakecloud.nix
./scripts.nix
···
./laptop.nix
./nix-cache.nix
./nix-index.nix
./printing.nix
./rmfakecloud.nix
./scripts.nix
-2
modules/ocaml.nix
···
config = lib.mkIf cfg.ocaml {
environment.systemPackages = with pkgs; [
-
opam
-
pkg-config
];
};
}
···
config = lib.mkIf cfg.ocaml {
environment.systemPackages = with pkgs; [
];
};
}
-1
templates/host/default.nix
···
home-manager.users.${config.custom.username} = {
custom = {
machineColour = "blue";
-
# nvim-lsps = true;
};
};
···
home-manager.users.${config.custom.username} = {
custom = {
machineColour = "blue";
};
};