-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathvscode-with-extensions.nix
More file actions
49 lines (49 loc) · 1.37 KB
/
vscode-with-extensions.nix
File metadata and controls
49 lines (49 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
system,
nixpkgs,
overlay ? import ./overlay.nix,
resetLicense ? import ./resetLicense.nix,
}:
let
pkgs = nixpkgs.legacyPackages.${system};
lib = pkgs.lib;
in
pkgs.vscode-with-extensions.override {
# vscode = pkgs.vscodium;
vscode = resetLicense pkgs.vscode;
vscodeExtensions =
let
extensions = import nixpkgs {
inherit system;
# Uncomment to allow unfree extensions
# config.allowUnfree = true;
overlays = [ overlay ];
};
in
(with extensions.vscode-marketplace; [
golang.go
vlanguage.vscode-vlang
rust-lang.rust-analyzer
ms-dotnettools.vscode-dotnet-runtime
mkhl.direnv
jnoortheen.nix-ide
tamasfe.even-better-toml
ms-python.python
drmerfy.overtype
marlinfirmware.auto-build
])
++ (lib.lists.optionals (builtins.elem system lib.platforms.linux) (
with extensions.vscode-marketplace;
[
# Exclusively for testing purpose
(resetLicense ms-vscode.cpptools)
# on aarch64-linux, triggers the error:
# build input /nix/store/194yri6cyqad6yvbhpqp5wswsppnsi7x-jq-1.8.1-dev does not exist
# yzane.markdown-pdf
]
))
++ (with extensions.vscode-marketplace-universal; [
# TODO enable after closing https://github.com/nix-community/nix-vscode-extensions/issues/165
vadimcn.vscode-lldb
]);
}