Files
nixos/modules/hm/vscodium.nix
T

81 lines
2.3 KiB
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-07-31 15:20:26 -05:00
let
cfg = config.greg.vscodium;
in
{
options.greg.vscodium = lib.mkEnableOption "Enable installation of VSCodium on the host";
2024-07-31 15:20:26 -05:00
config = lib.mkIf cfg {
home.packages = with pkgs; [
buildifier
gopls
nixd # nix language server
];
2024-07-31 15:20:26 -05:00
# An alternative editor to vim, when I need it for some things
programs.vscode = {
enable = true;
2025-03-03 16:51:45 -06:00
profiles.default = {
extensions =
2025-03-20 11:22:42 -05:00
with pkgs.vscode-marketplace;
2025-03-03 16:51:45 -06:00
[
arrterian.nix-env-selector
asvetliakov.vscode-neovim
batisteo.vscode-django
donjayamanne.python-environment-manager
golang.go
kevinrose.vsc-python-indent
jnoortheen.nix-ide
mkhl.direnv
ms-python.python
2025-06-22 00:26:25 -05:00
ms-vscode.cpptools-extension-pack
2025-05-06 13:19:26 -05:00
ms-vscode.makefile-tools
2025-10-16 00:22:14 -05:00
ms-vscode-remote.remote-containers
2025-05-06 13:19:26 -05:00
ms-vscode-remote.remote-ssh
2025-03-03 16:51:45 -06:00
njpwerner.autodocstring
rust-lang.rust-analyzer
2025-06-19 13:16:42 -05:00
slint.slint
2025-03-03 16:51:45 -06:00
tamasfe.even-better-toml
vscjava.vscode-java-test
vscjava.vscode-java-dependency
vscjava.vscode-java-debug
wholroyd.jinja
]
2025-03-20 11:22:42 -05:00
++ (with pkgs.vscode-marketplace-release; [
2025-03-03 16:51:45 -06:00
github.copilot
github.copilot-chat
]);
userSettings = {
2025-10-16 00:22:14 -05:00
"dev.containers.dockerPath" = "podman";
2025-03-03 16:51:45 -06:00
"direnv.restart.automatic" = true;
"direnv.path.executable" = (lib.getExe pkgs.direnv);
"extensions.autoUpdate" = false;
"extensions.experimental.affinity" = {
"asvetliakov.vscode-neovim" = 1;
};
"git.openRepositoryInParentFolders" = "always";
2025-05-19 09:53:35 -05:00
"github.copilot.enable" = {
"*" = false;
"plaintext" = false;
"markdown" = false;
"scminput" = false;
};
2025-03-03 16:51:45 -06:00
"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
}