mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-11 17:39:37 +08:00
Revert "vscode: fix extension path symlink error"
This reverts commit fe145b12cd.
Turns out the change does not apply to Nixpkgs 20.03 [1].
[1] https://github.com/rycee/home-manager/pull/1100#issuecomment-621506706
This commit is contained in:
@@ -78,11 +78,14 @@ in
|
||||
home.file =
|
||||
let
|
||||
toPaths = path:
|
||||
# Links every dir in path to the extension path.
|
||||
mapAttrsToList (k: v:
|
||||
{
|
||||
"${extensionPath}/${k}".source = "${path}/${k}";
|
||||
}) (builtins.readDir 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
|
||||
|
||||
Reference in New Issue
Block a user