feat(vscodium remote): attempt to match versions on client and server environments

This commit is contained in:
steveej 2024-03-07 21:58:24 +01:00
parent 092e69133f
commit b144c4501f
6 changed files with 67 additions and 5 deletions

View file

@ -9,7 +9,10 @@
nodeName,
system,
...
}: {
}: let
pkgsUnstableSmall = import nodeFlake.inputs.nixpkgs-unstable-small {inherit (pkgs) system config;};
pkgsVscodium = import repoFlake.inputs.nixpkgs-vscodium {inherit (pkgs) system config;};
in {
disabledModules = [
];
@ -47,6 +50,16 @@
pkgs.nixpkgs-fmt
pkgs.alejandra
pkgs.nixfmt
# TODO: automate linking this
# 1. get the commit with: `codium --version`
# 2. create the binary directory: `mkdir -p /home/steveej/.vscodium-server/bin/c8ce3ba4bc6b30b3b10edc61481cb85b1d2396bc/bin/`
# 3. link the binary. this relies on the client-side setting `"remote.SSH.experimental.serverBinaryName": "openvscode-server"` : ln -s $(which openvscode-server) /home/steveej/.vscodium-server/bin/c8ce3ba4bc6b30b3b10edc61481cb85b1d2396bc/bin/
(pkgsVscodium.openvscode-server.overrideAttrs(attrs: {
src = repoFlake.inputs.openvscode-server;
version = "1.86.2";
yarnCache = attrs.yarnCache.overrideAttrs (_: {outputHash = "sha256-mB7Fw/5pCBJNGtH3PvGhZOAIP/C2MoSvBvZy17TPN9U=";});
}))
];
};