diff --git a/hosts/default/home.nix b/hosts/default/home.nix index 391d0c8..06bd30d 100644 --- a/hosts/default/home.nix +++ b/hosts/default/home.nix @@ -106,25 +106,6 @@ "electron-25.9.0" ]; - programs.vscode = { - enable = true; - extensions = with pkgs.vscode-extensions; [ - arrterian.nix-env-selector - mkhl.direnv - jnoortheen.nix-ide - - xaver.clang-format - llvm-vs-code-extensions.vscode-clangd - vadimcn.vscode-lldb - # ms-vscode.cpptools - colejcummins.llvm-syntax-highlighting - - rust-lang.rust-analyzer - - waderyan.gitblame - ]; - }; - programs.bat = { enable = true; config = { diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index f6ba745..30c2fae 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -5,6 +5,7 @@ ./neovim ./session-vars ./tmux + ./vscode ./zsh ]; @@ -14,5 +15,6 @@ kitty.enable = lib.mkDefault true; neovim.enable = lib.mkDefault true; tmux.enable = lib.mkDefault true; + vsocde.enable = lib.mkDefault true; zsh.enable = lib.mkDefault true; } diff --git a/modules/home-manager/vscode/default.nix b/modules/home-manager/vscode/default.nix new file mode 100644 index 0000000..6ee3c90 --- /dev/null +++ b/modules/home-manager/vscode/default.nix @@ -0,0 +1,30 @@ +{ + config, + lib, + pkgs, + ... +}: { + options = { + vscode.enable = lib.mkEnableOption "enable vscode"; + }; + config = lib.mkIf config.vscode.enable { + programs.vscode = { + enable = true; + extensions = with pkgs.vscode-extensions; [ + arrterian.nix-env-selector + mkhl.direnv + jnoortheen.nix-ide + + xaver.clang-format + llvm-vs-code-extensions.vscode-clangd + vadimcn.vscode-lldb + # ms-vscode.cpptools + colejcummins.llvm-syntax-highlighting + + rust-lang.rust-analyzer + + waderyan.gitblame + ]; + }; + }; +}