mirror of
https://git.adityakumar.xyz/nix-conf.git
synced 2024-11-21 19:52:52 +00:00
add vscode
This commit is contained in:
parent
dd400f5b24
commit
dec2a755d5
3 changed files with 32 additions and 19 deletions
|
@ -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 = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
30
modules/home-manager/vscode/default.nix
Normal file
30
modules/home-manager/vscode/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue