mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
vscode: correct base path from which to pull extensions
This commit is contained in:
parent
08094f3cc2
commit
595150be86
1 changed files with 9 additions and 6 deletions
|
@ -71,12 +71,15 @@ in
|
||||||
# Adapted from https://discourse.nixos.org/t/vscode-extensions-setup/1801/2
|
# Adapted from https://discourse.nixos.org/t/vscode-extensions-setup/1801/2
|
||||||
home.file =
|
home.file =
|
||||||
let
|
let
|
||||||
toPaths = p:
|
toPaths = path:
|
||||||
# Links every dir in p to the extension path.
|
let
|
||||||
mapAttrsToList (k: v:
|
p = "${path}/share/vscode/extensions";
|
||||||
{
|
in
|
||||||
"${extensionPath}/${k}".source = "${p}/${k}";
|
# Links every dir in p to the extension path.
|
||||||
}) (builtins.readDir p);
|
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