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 =
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue