Files
nixos/home/modules/vscodium.nix
T

52 lines
1.4 KiB
Nix
Raw Normal View History

2024-07-31 15:20:26 -05:00
{ pkgs, config, lib, ... }:
let
cfg = config.greg.vscodium;
in {
options.greg.vscodium = lib.mkEnableOption "Enable installation of VSCodium on the host";
config = lib.mkIf cfg {
home.packages = with pkgs; [
buildifier
gopls
];
# An alternative editor to vim, when I need it for some things
programs.vscode = {
enable = true;
package = pkgs.vscodium;
extensions = with pkgs.vscode-extensions; [
arrterian.nix-env-selector
asvetliakov.vscode-neovim
bungcip.better-toml
golang.go
jnoortheen.nix-ide
mkhl.direnv
ms-python.python
2024-08-01 14:30:55 -05:00
rust-lang.rust-analyzer
2024-07-31 15:20:26 -05:00
vscjava.vscode-java-test
vscjava.vscode-java-dependency
vscjava.vscode-java-debug
];
2024-09-19 14:45:43 -05:00
userSettings = {
"direnv.restart.automatic" = true;
"direnv.path.executable" = "/home/gregory.hellings/.nix-profile/bin/direnv";
"extensions.autoUpdate" = false;
"extensions.experimental.affinity" = {
"asvetliakov.vscode-neovim" = 1;
};
"git.openRepositoryInParentFolders" = "always";
"search.exclude" = {
"**/.tox" = true;
};
"terminal.integrated.defaultProfile.linux" = "tmux";
"vscode-neovim.neovimInitVimPaths.darwin" = "~/.config/nvim/init.lua";
"vscode-neovim.neovimInitVimPaths.linux" = "~/.config/nvim/init.lua";
"workbench.settings.applyToAllProfiles" = [
"direnv.path.executable"
];
};
2024-07-31 15:20:26 -05:00
};
};
}