feat(vscodium remote): attempt to match versions on client and server environments
This commit is contained in:
parent
092e69133f
commit
b144c4501f
6 changed files with 67 additions and 5 deletions
|
@ -2,7 +2,9 @@
|
|||
self',
|
||||
inputs',
|
||||
pkgs,
|
||||
}: {
|
||||
}: let
|
||||
pkgsUnstable = inputs'.nixpkgs-unstable.legacyPackages;
|
||||
in {
|
||||
install = pkgs.mkShell {
|
||||
name = "infra-install";
|
||||
packages = with pkgs; [
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
config,
|
||||
# these come in via home-manager.extraSpecialArgs and are specific to each node
|
||||
nodeFlake,
|
||||
repoFlake,
|
||||
packages',
|
||||
...
|
||||
}: let
|
||||
|
|
|
@ -1,11 +1,14 @@
|
|||
{
|
||||
pkgs,
|
||||
nodeFlake,
|
||||
repoFlake,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
pkgsVscodium = import repoFlake.inputs.nixpkgs-vscodium {inherit (pkgs) system config;};
|
||||
in {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
package = pkgsVscodium.vscodium;
|
||||
extensions =
|
||||
[
|
||||
# TODO: how can i install (this) vsix(s) directly?
|
||||
|
@ -38,7 +41,11 @@
|
|||
mutableExtensionsDir = true;
|
||||
};
|
||||
|
||||
home.packages = [pkgs.nixpkgs-fmt pkgs.alejandra];
|
||||
home.packages = [
|
||||
pkgs.nixpkgs-fmt
|
||||
pkgs.alejandra
|
||||
pkgs.nil
|
||||
];
|
||||
}
|
||||
# TODO: automate
|
||||
### original list:
|
||||
|
|
|
@ -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=";});
|
||||
}))
|
||||
];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue