add support for vscode-server
This commit is contained in:
parent
76c4fa73aa
commit
d39af81e70
1 changed files with 18 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, lib, ... }: {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
mutableExtensionsDir = true;
|
||||
|
@ -70,4 +70,20 @@
|
|||
"redhat.telemetry.enabled" = false; # FUCK OFF
|
||||
};
|
||||
};
|
||||
home.activation.vscode-server = lib.hm.dag.entryAfter [ "write-boundary" ] ''
|
||||
if test -f ~/.vscode-server; then
|
||||
if test -f "~/.vscode/extensions"; then
|
||||
if ! test -L "~/.vscode-server/extensions"; then
|
||||
$DRY_RUN_CMD ln -s $VERBOSE_ARG ~/.vscode/extensions ~/.vscode-server/
|
||||
fi
|
||||
fi
|
||||
if test -f "~/vscode-server/bin"; then
|
||||
for f (~/.vscode-server/bin/*/node); do
|
||||
if ! test -L $f; then
|
||||
$DRY_RUN_CMD ln -sf $VERBOSE_ARG ${pkgs.nodejs}/bin/node $f
|
||||
fi
|
||||
done
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue