Skip to content

Commit

Permalink
feat(nix): add optional remote vscode config
Browse files Browse the repository at this point in the history
  • Loading branch information
LGUG2Z committed Oct 1, 2023
1 parent 9ac3e3c commit 2e60d20
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wsl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,22 @@
autoPrune.enable = true;
};

# FIXME: uncomment the next block to make vscode running in Windows "just work" with NixOS on WSL
# solution adapted from: https://github.com/K900/vscode-remote-workaround
# more information: https://github.com/nix-community/NixOS-WSL/issues/238 and https://github.com/nix-community/NixOS-WSL/issues/294
# systemd.user = {
# paths.vscode-remote-workaround = {
# wantedBy = ["default.target"];
# pathConfig.PathChanged = "%h/.vscode-server/bin";
# };
# services.vscode-remote-workaround.script = ''
# for i in ~/.vscode-server/bin/*; do
# echo "Fixing vscode-server in $i..."
# ln -sf ${pkgs.nodejs_18}/bin/node $i/node
# done
# '';
# };

nix = {
settings = {
trusted-users = [username];
Expand Down

0 comments on commit 2e60d20

Please sign in to comment.