2021-11-17 16:32:18 +01:00
|
|
|
{
|
2022-03-01 22:19:03 +01:00
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
flake-inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.eboskma.programs.vscode;
|
|
|
|
in {
|
2021-11-17 16:32:18 +01:00
|
|
|
options.eboskma.programs.vscode.enable = mkEnableOption "enable vscode";
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.vscode;
|
2022-03-01 22:19:03 +01:00
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
arrterian.nix-env-selector
|
|
|
|
bbenoist.nix
|
|
|
|
# brettm12345.nixfmt-vscode
|
|
|
|
# aaronduino.nix-lsp
|
|
|
|
# aliariff.auto-add-brackets
|
|
|
|
bradlc.vscode-tailwindcss
|
|
|
|
# bungcip.better-toml
|
|
|
|
coolbear.systemd-unit-file
|
|
|
|
# dawhite.mustache
|
|
|
|
dbaeumer.vscode-eslint
|
|
|
|
denoland.vscode-deno
|
|
|
|
# dlasagno.rasi
|
|
|
|
# dprint.dprint
|
|
|
|
editorconfig.editorconfig
|
|
|
|
esbenp.prettier-vscode
|
|
|
|
# EugenWiens.bitbake
|
|
|
|
elixir-lsp.vscode-elixir-ls # this is the one by Jake Becker, not the deprecated one
|
|
|
|
# kumar-harsh.graphql-for-vscode
|
|
|
|
matklad.rust-analyzer
|
|
|
|
# monokai.theme-monokai-pro-vscode
|
|
|
|
ms-azuretools.vscode-docker
|
|
|
|
ms-python.python
|
|
|
|
ms-python.vscode-pylance
|
|
|
|
ms-toolsai.jupyter
|
|
|
|
# ms-toolsai.jupyter-keymap
|
|
|
|
# ms-toolsai.jupyter-renderers
|
|
|
|
# ms-vscode-remote.remote-containers
|
|
|
|
ms-vscode-remote.remote-ssh
|
|
|
|
# ms-vscode-remote.remote-ssh-edit
|
|
|
|
# ms-vscode.cmake-tools
|
|
|
|
ms-vscode.cpptools
|
|
|
|
# msaraiva.surface
|
|
|
|
# pgourlain.erlang
|
|
|
|
# phoenixframework.phoenix
|
|
|
|
rubymaniac.vscode-paste-and-indent
|
|
|
|
# surajbarkale.ninja
|
|
|
|
timonwong.shellcheck
|
|
|
|
# twxs.cmake
|
|
|
|
vadimcn.vscode-lldb
|
|
|
|
# vscode-icons-team.vscode-icons
|
|
|
|
vscodevim.vim
|
|
|
|
wholroyd.jinja
|
|
|
|
xaver.clang-format
|
|
|
|
zxh404.vscode-proto3
|
|
|
|
];
|
2021-11-17 16:32:18 +01:00
|
|
|
|
2022-02-09 08:13:16 +01:00
|
|
|
keybindings = [
|
|
|
|
{
|
|
|
|
"key" = "ctrl+t";
|
|
|
|
"command" = "-workbench.action.showAllSymbols";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"key" = "ctrl+t";
|
|
|
|
"command" = "workbench.action.quickOpen";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"key" = "ctrl+p";
|
|
|
|
"command" = "-workbench.action.quickOpen";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-03-01 22:19:03 +01:00
|
|
|
userSettings = builtins.fromJSON (builtins.readFile ./settings.json);
|
2021-11-17 16:32:18 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
rnix-lsp
|
2021-11-22 08:04:54 +01:00
|
|
|
shellcheck
|
2022-03-01 22:18:44 +01:00
|
|
|
flake-inputs.alejandra.defaultPackage.${pkgs.system}
|
2021-11-17 16:32:18 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|