add vscode

This commit is contained in:
Cyryl Płotnicki 2023-01-29 08:31:13 +00:00
parent 93b53be203
commit 9b106fd463
2 changed files with 152 additions and 155 deletions

View file

@ -66,12 +66,17 @@
"steam-original"
"steam-runtime"
"steam-run"
"vscode-with-extensions"
"vscode"
];
home-manager.users.cyryl = { ... }: {
imports = [ ../../home-manager/programs/alacritty.nix ];
home.packages = [
inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux".bisq-desktop
imports =
[ ../../home-manager/programs/alacritty.nix ../../gui/vscode.nix ];
home.packages =
with inputs.nixpkgs-nixos-unstable.legacyPackages."x86_64-linux"; [
bisq-desktop
pkgs.lutris
];
};
}

View file

@ -1,25 +1,23 @@
{
config,
pkgs,
...
}: {
home.packages = with pkgs; [
{ config, pkgs, ... }: {
home.packages = with pkgs;
[
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions;
[
ms-python.python
matklad.rust-analyzer
(vscode-utils.buildVscodeExtension {
vscodeExtUniqueId = "vadimcn.vscode-lldb";
name = "vadimcn.vscode-lldb-1.6.10";
src = fetchurl {
name = "vadimcn.vscode-lldb.zip";
url = "https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
url =
"https://github.com/vadimcn/vscode-lldb/releases/download/v1.6.10/codelldb-${pkgs.system}.vsix";
sha256 = "sha256-QWbpe6ofacjrTCyWSKljwHDWWeHGmKNqi7cpw8Qy5Tw=";
};
buildInputs = with pkgs; [ llvm lldb python37 autoPatchelfHook ];
})
]
++ vscode-utils.extensionsFromVscodeMarketplace [
] ++ vscode-utils.extensionsFromVscodeMarketplace [
{
publisher = "vscodevim";
name = "vim";
@ -32,12 +30,6 @@
version = "1.0.1";
sha256 = "sha256-qwxqOGublQeVP2qrLF94ndX/Be9oZOn+ZMCFX1yyoH0=";
}
{
publisher = "matklad";
name = "rust-analyzer";
version = "0.3.937";
sha256 = "sha256-aGBFKnntycpgNFdWwxFPVtQ2ryUvFCx7oet9uILiUTY=";
}
{
publisher = "hashicorp";
name = "terraform";