Visual Studio Code: Difference between revisions
imported>Sirkonst Note about GUI for GNOME Keyring |
imported>Edrex Add instructions for installing insiders build |
||
Line 38: | Line 38: | ||
* See for more options: [https://nix-community.github.io/home-manager/options.html#opt-programs.vscode.enable Home Manager Manual: Options - programs.vscode] | * See for more options: [https://nix-community.github.io/home-manager/options.html#opt-programs.vscode.enable Home Manager Manual: Options - programs.vscode] | ||
* Search for extensions with configurations: [https://search.nixos.org/packages?channel=unstable&from=0&size=30&sort=relevance&type=packages&query=vscode-extensions NixOS Search: vscode-extensions] | * Search for extensions with configurations: [https://search.nixos.org/packages?channel=unstable&from=0&size=30&sort=relevance&type=packages&query=vscode-extensions NixOS Search: vscode-extensions] | ||
=== Insiders Build === | |||
If you need to test a recent code change, you can run the insiders build. It is designed to run alongside the main build, with a separate <code>code-insiders</code> command and a different config path, so you can leave your main VSCode instance installed/running. | |||
The following derivation [https://discourse.nixos.org/t/how-to-install-latest-vscode-insiders/7895/4 thanks to @jnoortheen], which you can add to <code>home.packages</code> (HM), <code>environment.systemPackages</code> (NixOS), etc, builds a package with the latest insiders. | |||
<syntaxHighlight lang=nix> | |||
(pkgs.vscode.override{ isInsiders = true; }).overrideAttrs (oldAttrs: rec { | |||
src = (builtins.fetchTarball { | |||
url = "https://update.code.visualstudio.com/latest/linux-x64/insider"; | |||
sha256 = "1dajhfsdr55mfnj12clf5apy1d4swr71d3rfwlq2hvvmpxvxsa59"; | |||
}); | |||
version = "latest"; | |||
}); | |||
</syntaxHighlight> | |||
You will need to update the <code>sha256</code> value for each new insiders build. The new value will appear in a validation error when you try to build. | |||
=== With nix-env === | === With nix-env === |