From 507e4464751b86b24e435bc8f178942f7d0de101 Mon Sep 17 00:00:00 2001 From: Zsolt Szende Date: Sat, 13 Jun 2020 17:01:29 +0100 Subject: [PATCH] vscode: fix extensions directory path Fixes #1302 PR #1327 --- modules/programs/vscode.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index 28f92cef..8e8fba77 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -77,12 +77,13 @@ in # Adapted from https://discourse.nixos.org/t/vscode-extensions-setup/1801/2 home.file = let + subDir = "share/vscode/extensions"; toPaths = path: # Links every dir in path to the extension path. - mapAttrsToList (k: v: + mapAttrsToList (k: _: { - "${extensionPath}/${k}".source = "${path}/${k}"; - }) (builtins.readDir path); + "${extensionPath}/${k}".source = "${path}/${subDir}/${k}"; + }) (builtins.readDir (path + "/${subDir}")); toSymlink = concatMap toPaths cfg.extensions; in foldr