add vscode

This commit is contained in:
Aditya 2024-04-11 18:16:41 +05:30
parent dd400f5b24
commit dec2a755d5
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 32 additions and 19 deletions

View file

@ -106,25 +106,6 @@
"electron-25.9.0" "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 = { programs.bat = {
enable = true; enable = true;
config = { config = {

View file

@ -5,6 +5,7 @@
./neovim ./neovim
./session-vars ./session-vars
./tmux ./tmux
./vscode
./zsh ./zsh
]; ];
@ -14,5 +15,6 @@
kitty.enable = lib.mkDefault true; kitty.enable = lib.mkDefault true;
neovim.enable = lib.mkDefault true; neovim.enable = lib.mkDefault true;
tmux.enable = lib.mkDefault true; tmux.enable = lib.mkDefault true;
vsocde.enable = lib.mkDefault true;
zsh.enable = lib.mkDefault true; zsh.enable = lib.mkDefault true;
} }

View file

@ -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
];
};
};
}