From 24044dc5fe31a00c19fcd036a093916192bfb669 Mon Sep 17 00:00:00 2001 From: dwilliam62 Date: Tue, 24 Jun 2025 17:41:29 +0000 Subject: [PATCH] Added vscode w/plugins added variable to enable --- CHANGELOG.md | 3 +++ hosts/default/variables.nix | 9 +++++---- hosts/zaneyos-oem/host-packages.nix | 1 - hosts/zaneyos-oem/variables.nix | 1 + modules/home/default.nix | 6 ++++++ modules/home/vscode.nix | 20 ++++++++++++++++++++ 6 files changed, 35 insertions(+), 5 deletions(-) create mode 100644 modules/home/vscode.nix diff --git a/CHANGELOG.md b/CHANGELOG.md index 89eef1c..1c295ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` diff --git a/hosts/default/variables.nix b/hosts/default/variables.nix index 80ed9f4..74e74b6 100644 --- a/hosts/default/variables.nix +++ b/hosts/default/variables.nix @@ -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"; diff --git a/hosts/zaneyos-oem/host-packages.nix b/hosts/zaneyos-oem/host-packages.nix index 42683e2..daff304 100644 --- a/hosts/zaneyos-oem/host-packages.nix +++ b/hosts/zaneyos-oem/host-packages.nix @@ -14,7 +14,6 @@ ncdu gdu ugrep - vscode-fhs waypaper dysk ]; diff --git a/hosts/zaneyos-oem/variables.nix b/hosts/zaneyos-oem/variables.nix index 02886ee..2040029 100644 --- a/hosts/zaneyos-oem/variables.nix +++ b/hosts/zaneyos-oem/variables.nix @@ -14,6 +14,7 @@ alacrittyEnable = true; weztermEnable = true; ghosttyEnable = true; + vscodeEnable = true; # P10K or starship prompt userPrompt = "starship"; diff --git a/modules/home/default.nix b/modules/home/default.nix index 66500ab..696e743 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -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] diff --git a/modules/home/vscode.nix b/modules/home/vscode.nix new file mode 100644 index 0000000..280531d --- /dev/null +++ b/modules/home/vscode.nix @@ -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 + ]; + }; + }; + }; +}