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 26, 2024
1 parent 65aa525 commit 6cb022e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 87 deletions.
80 changes: 42 additions & 38 deletions home-manager/vscode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,58 @@ in {
programs.vscode = {
enable = true;
enableUpdateCheck = false;
package = (
pkgs.callPackage ../pkgs/vscode-repackaged.nix {}
);
package = (pkgs.vscode.override {
# if keyring does not work, try either "libsecret" or "gnome"
commandLineArgs = ''--password-store=gnome-libsecret'';
});

# 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; [
## 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
extensions =
(with pkgs-vscode-extensions.vscode-marketplace; [
## Language support ##
jnoortheen.nix-ide # Nix language support
ms-python.python # Python 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

## Linters ##
esbenp.prettier-vscode # Prettier code formatter
davidanson.vscode-markdownlint # Markdown Linting
## Linters ##
esbenp.prettier-vscode # Prettier code formatter
davidanson.vscode-markdownlint # Markdown Linting

## GIT Tools ##
github.copilot # GitHub Copilot
github.copilot-chat # GitHub Copilot Chat
github.codespaces # GitHub Codespaces
github.vscode-pull-request-github # GitHub Pull Requests
github.vscode-github-actions # GitHub Actions
donjayamanne.githistory # Git History
eamodio.gitlens # GitLens
## GIT Tools ##
github.copilot # GitHub Copilot
github.copilot-chat # GitHub Copilot Chat
github.codespaces # GitHub Codespaces
github.vscode-pull-request-github # GitHub Pull Requests
github.vscode-github-actions # GitHub Actions
donjayamanne.githistory # Git History
eamodio.gitlens # GitLens

## MISCELLANEOUS ##
ms-azuretools.vscode-docker # Docker
ms-vscode-remote.remote-containers # Dev Containers
ms-vscode-remote.remote-ssh # Remote SSH
## MISCELLANEOUS ##
ms-azuretools.vscode-docker # Docker
ms-vscode-remote.remote-containers # Dev Containers
ms-vscode-remote.remote-ssh # Remote SSH

rolandgreim.sharecode # Pastebin/Gist support
ritwickdey.liveserver # launch local html web server
mkhl.direnv # direnv support
oderwat.indent-rainbow # colorful indentation
# arrterian.nix-env-selector # not needed at the moment
rolandgreim.sharecode # Pastebin/Gist support
ritwickdey.liveserver # launch local html web server
mkhl.direnv # direnv support
oderwat.indent-rainbow # colorful indentation
# arrterian.nix-env-selector # not needed at the moment

## THEMING ##
# dracula-theme.theme-dracula # Dracula theme
# enkia.tokyo-night # Tokyo Night theme
robbowen.synthwave-vscode # SynthWave '84 theme
pkief.material-icon-theme # Material Icon Theme
pkief.material-product-icons # Material Product Icons
];
## THEMING ##
# dracula-theme.theme-dracula # Dracula theme
# enkia.tokyo-night # Tokyo Night theme
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 6cb022e

Please sign in to comment.