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:
parent
98fa8f63b8
commit
a378bccd60
|
@ -78,11 +78,14 @@ in
|
||||||
home.file =
|
home.file =
|
||||||
let
|
let
|
||||||
toPaths = path:
|
toPaths = path:
|
||||||
# Links every dir in path to the extension path.
|
let
|
||||||
mapAttrsToList (k: v:
|
p = "${path}/share/vscode/extensions";
|
||||||
{
|
in
|
||||||
"${extensionPath}/${k}".source = "${path}/${k}";
|
# Links every dir in p to the extension path.
|
||||||
}) (builtins.readDir path);
|
mapAttrsToList (k: v:
|
||||||
|
{
|
||||||
|
"${extensionPath}/${k}".source = "${p}/${k}";
|
||||||
|
}) (builtins.readDir p);
|
||||||
toSymlink = concatMap toPaths cfg.extensions;
|
toSymlink = concatMap toPaths cfg.extensions;
|
||||||
in
|
in
|
||||||
foldr
|
foldr
|
||||||
|
|
Loading…
Reference in a new issue