vscode: check host platform for extensions

Closes #11
This commit is contained in:
Katherina Walshe-Grey 2024-08-22 04:22:08 +01:00
parent 1f4c275c98
commit 432bc05190

View file

@ -1,9 +1,9 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, osConfig, ... }:
let let
inherit (lib) mkIf; inherit (lib) mkIf;
inherit (pkgs) fetchFromGitHub; inherit (pkgs) fetchFromGitHub;
system = "x86_64-linux"; # TODO: This should check the host architecture inherit (osConfig.nixpkgs.hostPlatform) system;
extensions = extensions =
(import (fetchFromGitHub { (import (fetchFromGitHub {
# On a stable channel, do NOT keep this up-to-date! VS Code extensions # On a stable channel, do NOT keep this up-to-date! VS Code extensions
@ -13,7 +13,8 @@ let
rev = "27ce569a199d2da1a8483fe3d69dd41664da3a63"; rev = "27ce569a199d2da1a8483fe3d69dd41664da3a63";
hash = "sha256-yyB4Kh3EFbYP+1JHza/IEeHwABypcYVi6vvWTmad/rY="; hash = "sha256-yyB4Kh3EFbYP+1JHza/IEeHwABypcYVi6vvWTmad/rY=";
})).extensions.${system}; })).extensions.${system};
in { in
{
programs.vscode = { programs.vscode = {
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
enableUpdateCheck = false; enableUpdateCheck = false;