Automatically fix binaries deployed by the Visual Studio Code Remote SSH extension.
As binaries are fixed after the extension installs them, you likely have to click "Retry" when connecting to a remote host through VS Code for the first time. Subsequent connections to the same host should work immediately.
This project only strives for supporting Nix Flakes.
Add an input for this repository:
{
inputs.vscode-server-fixup.url = "github:yaxitech/vscode-server-fixup";
}
Extend your nixosConfigurations
as follows:
{
outputs = { nixpkgs, home-manager, vscode-server-fixup, ... }: {
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
vscode-server-fixup.nixosModules.system
home-manager.nixosModules.home-manager
{
home-manager.sharedModules = [
nixos-vscode-server.nixosModules.vscode-server-home
];
home-manager.users."wurzelpfropf" = { ... }: {
services.vscode-server-fixup.enable = true;
};
}
];
};
};
};
}
{
outputs = { nixpkgs, vscode-server-fixup, ... }: {
nixosConfigurations = {
hostname = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
vscode-server-fixup.nixosModules.system
{
services.vscode-server-fixup.enable = true;
}
];
};
};
};
}
Activate the unit for your user by issuing:
systemctl --user enable vscode-server-fixup.path
systemctl --user start vscode-server-fixup.path