Set IVR tmux setting to Xonsh, since I cannot control my user's login shell Set some default editor and terminal settings in VSCodium so it automatically launches tmux (thus, on my IVR machine, it will also pick up Xonsh for my user's environment setting)
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ 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
|
|
rust-lang.rust-analyzer
|
|
vscjava.vscode-java-test
|
|
vscjava.vscode-java-dependency
|
|
vscjava.vscode-java-debug
|
|
];
|
|
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"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|