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
|
||||||
|
p = "${path}/share/vscode/extensions";
|
||||||
|
in
|
||||||
|
# Links every dir in p to the extension path.
|
||||||
mapAttrsToList (k: v:
|
mapAttrsToList (k: v:
|
||||||
{
|
{
|
||||||
"${extensionPath}/${k}".source = "${path}/${k}";
|
"${extensionPath}/${k}".source = "${p}/${k}";
|
||||||
}) (builtins.readDir path);
|
}) (builtins.readDir p);
|
||||||
toSymlink = concatMap toPaths cfg.extensions;
|
toSymlink = concatMap toPaths cfg.extensions;
|
||||||
in
|
in
|
||||||
foldr
|
foldr
|
||||||
|
|
Loading…
Reference in a new issue