Added vscode w/plugins added variable to enable

This commit is contained in:
dwilliam62 2025-06-24 17:41:29 +00:00
commit 24044dc5fe
6 changed files with 35 additions and 5 deletions

View file

@ -4,6 +4,9 @@
** Updated: June 24th, 2025 **
- Added `vscode.nix` with plugins for NIX, BASH, JSON, and VIM keybinds
- Added variable 'enableVscode' in the `hosts/default/variables.nix` to turn on
or off
- Updated flake
- Added control variables for `alacritty` `ghostty` `tmux` `wezterm` in
`variables.nix`

View file

@ -10,10 +10,11 @@
displayManager = "sddm";
# Emable/disable bundled applications
tmuxEnable = true;
alacrittyEnable = true;
weztermEnable = true;
ghosttyEnable = true;
tmuxEnable = false;
alacrittyEnable = false;
weztermEnable = false;
ghosttyEnable = false;
vscodeEnable = false;
# P10K or starship prompt (not enabled yet)
userPrompt = "starship";

View file

@ -14,7 +14,6 @@
ncdu
gdu
ugrep
vscode-fhs
waypaper
dysk
];

View file

@ -14,6 +14,7 @@
alacrittyEnable = true;
weztermEnable = true;
ghosttyEnable = true;
vscodeEnable = true;
# P10K or starship prompt
userPrompt = "starship";

View file

@ -6,6 +6,7 @@
tmuxEnable
waybarChoice
weztermEnable
vscodeEnable
;
in {
imports =
@ -44,6 +45,11 @@ in {
./zoxide.nix
./zsh
]
++ (
if vscodeEnable
then [./vscode.nix]
else []
)
++ (
if weztermEnable
then [./wezterm.nix]

20
modules/home/vscode.nix Normal file
View file

@ -0,0 +1,20 @@
{pkgs, ...}: {
nixpkgs.config.allowUnfree = true;
programs.vscode = {
enable = true;
profiles = {
default = {
extensions = with pkgs.vscode-extensions; [
bbenoist.nix
jeff-hykin.better-nix-syntax
ms-vscode.cpptools-extension-pack
vscodevim.vim # Vim emulation
mads-hartmann.bash-ide-vscode
tamasfe.even-better-toml
zainchen.json
];
};
};
};
}