Skip to content

Commit

Permalink
x64-linux-dev: add nixos-vscode-server for remote development
Browse files Browse the repository at this point in the history
this module is merely for patching the binaries that are installed by
vscodium's remote-SSH plugin. it doesn't provide any actual servers.
  • Loading branch information
steveej committed Jul 18, 2024
1 parent 0c6aba9 commit 19a83eb
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 1 deletion.
69 changes: 68 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@
holoNixpkgs.url = "https://hydra.holo.host/channel/custom/holo-nixpkgs/2112/holo-nixpkgs/nixexprs.tar.xz";

nixpkgsPulumi.url = "github:steveej-forks/nixpkgs/pulumi-version-bump";

nixos-vscode-server.url = "github:nix-community/nixos-vscode-server";
};

outputs = inputs @ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ in {
home-manager.users.dev = {pkgs, ...}: {
home.packages = [
# additional packages for this user go here
pkgs.nil
pkgs.wget
pkgs.file
];
};

Expand All @@ -40,6 +43,31 @@ in {
{
services.devMinio.enable = true;
}

inputs.nixos-vscode-server.nixosModules.default
({
config,
pkgs,
...
}: {
/*
FIXME
there's issue when the vscodium SSH-remote extension has a non-default setting for `"remote.SSH.experimental.serverBinaryName": "openvscode-server",
it can be worked around by creating a symlink on the remote server:
```
[dev@x64-linux-dev-01:~/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b/bin]$ ln -s /home/dev/.vscodium-server/bin/0d01a72525276e5e3771fe5851b9c83de0de1e2b/bin/{codium,openvscode}-server
```
*/
services.vscode-server = {
enable = true;
installPath = "$HOME/.vscodium-server";
nodejsPackage = pkgs.nodejs_18;
extraRuntimeDependencies = [
pkgs.stdenv.cc.cc.lib
];
};
})
];

nix.settings.system-features = [
Expand Down

0 comments on commit 19a83eb

Please sign in to comment.