mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 11:39:46 +01:00
parent
478022afad
commit
507e446475
1 changed files with 4 additions and 3 deletions
|
@ -77,12 +77,13 @@ 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
|
||||||
|
subDir = "share/vscode/extensions";
|
||||||
toPaths = path:
|
toPaths = path:
|
||||||
# Links every dir in path to the extension path.
|
# Links every dir in path to the extension path.
|
||||||
mapAttrsToList (k: v:
|
mapAttrsToList (k: _:
|
||||||
{
|
{
|
||||||
"${extensionPath}/${k}".source = "${path}/${k}";
|
"${extensionPath}/${k}".source = "${path}/${subDir}/${k}";
|
||||||
}) (builtins.readDir path);
|
}) (builtins.readDir (path + "/${subDir}"));
|
||||||
toSymlink = concatMap toPaths cfg.extensions;
|
toSymlink = concatMap toPaths cfg.extensions;
|
||||||
in
|
in
|
||||||
foldr
|
foldr
|
||||||
|
|
Loading…
Reference in a new issue