nix-community / nixos-vscode-server

Visual Studio Code Server support in NixOS
MIT License
412 stars 75 forks source link

The created user symlink could be garbage collected at some point #37

Closed SuperSandro2000 closed 1 year ago

SuperSandro2000 commented 2 years ago

The symlink in the home directory points into the nix store and will get stale over time.

$ ls -lah .config/systemd/user/auto-fix-vscode-server.service
lrwxrwxrwx sandro users 110 B Tue Nov  1 17:38:07 2022  .config/systemd/user/auto-fix-vscode-server.service ⇒ /nix/store/dq7agb0d9x6z71425nk2qy24c67r40hh-unit-auto-fix-vscode-server.service/auto-fix-vscode-server.service

This can be fixed with ln -sf /run/current-system/etc/systemd/user/auto-fix-vscode-server.service ~/.config/systemd/user/auto-fix-vscode-server.service to always point the service to the current generation.

msteen commented 1 year ago

The README has been updated to include this, thanks for the tip!