Skip to content

Commit

Permalink
vscode: use cpptools from nixpkgs
Browse files Browse the repository at this point in the history
cpptools is no longer available in nix-vscode-extensions
  • Loading branch information
JohnRTitor committed Aug 25, 2024
1 parent c6dfcdf commit 62a5cac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 55 deletions.
11 changes: 5 additions & 6 deletions home-manager/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ in {
programs.vscode = {
enable = true;
enableUpdateCheck = false;
package = (
pkgs.callPackage ../pkgs/vscode-repackaged.nix {}
);
package = pkgs.vscode;

# Since not all extensions are provided via nixpkgs,
# We are using a vscode marketplace flake
# But we are still allowing extensions to be installed from VS code GUI
# disabling mutableExtensionsDir will mess up things
extensions = with pkgs-vscode-extensions.vscode-marketplace; [
extensions = (with pkgs-vscode-extensions.vscode-marketplace; [
## Language support ##
jnoortheen.nix-ide # Nix language support
ms-python.python # Python language support
ms-vscode.cpptools # C/C++ language support
ms-vscode.cpptools-extension-pack # C/C++ extension pack
tamasfe.even-better-toml # TOML language support
bmewburn.vscode-intelephense-client # PHP language support
Expand Down Expand Up @@ -60,7 +57,9 @@ in {
robbowen.synthwave-vscode # SynthWave '84 theme
pkief.material-icon-theme # Material Icon Theme
pkief.material-product-icons # Material Product Icons
];
]) ++ (with pkgs.vscode-extensions; [
ms-vscode.cpptools # C/C++ language support, only available via nixpkgs
]);
userSettings = {
"workbench.colorTheme" = "SynthWave '84";
# "Tokyo Night"; # "Dracula"; # "Default Dark Modern"; # ^ Set the default theme
Expand Down
49 changes: 0 additions & 49 deletions pkgs/vscode-repackaged.nix

This file was deleted.

0 comments on commit 62a5cac

Please sign in to comment.