try adding platformio to vscode

This commit is contained in:
Cyryl Płotnicki 2023-09-02 20:24:38 +01:00
parent ff38de4a26
commit 4576c9875e

View file

@ -1,22 +1,32 @@
{
config,
pkgs,
inputs,
...
}: {
home.packages = with pkgs; [
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions;
home.packages = [pkgs.python3];
programs.vscode = {
enable = true;
userSettings = {
editor.fontFamily = "'Berkeley Mono', 'Droid Sans Mono', 'monospace', monospace";
editor.formatOnType = true;
editor.fontSize = 16;
files.autoSave = "onFocusChange";
platformio-ide = {
useBuiltinPIOCore = true;
useBuiltinPython = true;
};
};
extensions = with pkgs.vscode-extensions;
[
ms-python.python
inputs.nixpkgs-rust-analyzer.legacyPackages.x86_64-linux.vscode-extensions.rust-lang.rust-analyzer
(vscode-utils.buildVscodeExtension {
(pkgs.vscode-utils.buildVscodeExtension {
vscodeExtUniqueId = "vadimcn.vscode-lldb";
vscodeExtPublisher = "vadimcn";
vscodeExtName = "vscode-lldb";
version = "1.6.10";
name = "vadimcn.vscode-lldb-1.6.10";
src = fetchurl {
src = pkgs.fetchurl {
name = "vadimcn.vscode-lldb.zip";
url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw=";
@ -24,7 +34,7 @@
buildInputs = with pkgs; [llvm lldb python38 autoPatchelfHook];
})
]
++ vscode-utils.extensionsFromVscodeMarketplace [
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
publisher = "vscodevim";
name = "vim";
@ -67,11 +77,17 @@
version = "0.6.0";
sha256 = "sha256-yk7buEyQIw6aiUizAm+sgalWxUibIuP9crhyBaOjC2E=";
}
{
publisher = "ms-vscode";
name = "cpptools";
version = "1.17.5";
sha256 = "sha256-LAAEw8goAw3x1MU/TkIdLgPYa0f5b6Hv4GkeiPTVbdY=";
}
{
publisher = "ms-vscode";
name = "cpptools-extension-pack";
version = "1.1.0";
sha256 = "sha256-XKHBwoRXNHIpy7gDR9/xEFdEdB4S0B9L9Jbk53f/Vbc=";
version = "1.3.0";
sha256 = "sha256-rHST7CYCVins3fqXC+FYiS5Xgcjmi7QW7M4yFrUR04U=";
}
{
publisher = "tiehuis";
@ -127,12 +143,6 @@
version = "2.9.3";
sha256 = "1yf85hgvganxq5n5jff9ckn3smxd6xi79cgn6k53qi5w1r5rahy0";
}
{
publisher = "lextudio";
name = "restructuredtext";
version = "106.0.0";
sha256 = "096r8071202nxi1is6z7dghcmpsh0f0mm3mp3cfh1yj2mnyzlaxa";
}
{
publisher = "lostintangent";
name = "vsls-pomodoro";
@ -164,6 +174,5 @@
sha256 = "1knspsc98cfw4mhc0yaz0f2185sxdf9kn9qsysfs6c82g9wjaqcj";
}
];
})
];
};
}