From 595150be86639cd1e41c9eba1cf02dc503d10c23 Mon Sep 17 00:00:00 2001 From: Pasquale Date: Mon, 11 Nov 2019 00:43:42 +0100 Subject: [PATCH] vscode: correct base path from which to pull extensions --- modules/programs/vscode.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index a3dedd38..319fffb6 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -71,12 +71,15 @@ in # Adapted from https://discourse.nixos.org/t/vscode-extensions-setup/1801/2 home.file = let - toPaths = p: - # Links every dir in p to the extension path. - mapAttrsToList (k: v: - { - "${extensionPath}/${k}".source = "${p}/${k}"; - }) (builtins.readDir p); + toPaths = path: + let + p = "${path}/share/vscode/extensions"; + in + # Links every dir in p to the extension path. + mapAttrsToList (k: v: + { + "${extensionPath}/${k}".source = "${p}/${k}"; + }) (builtins.readDir p); toSymlink = concatMap toPaths cfg.extensions; in foldr