mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
vscode: correct VSCodium extension directory path
This commit is contained in:
parent
ed9a6e34ad
commit
711109d468
1 changed files with 7 additions and 1 deletions
|
@ -14,6 +14,12 @@ let
|
||||||
"vscodium" = "VSCodium";
|
"vscodium" = "VSCodium";
|
||||||
}.${vscodePname};
|
}.${vscodePname};
|
||||||
|
|
||||||
|
extensionDir = {
|
||||||
|
"vscode" = "vscode";
|
||||||
|
"vscode-insiders" = "vscode-insiders";
|
||||||
|
"vscodium" = "vscode-oss";
|
||||||
|
}.${vscodePname};
|
||||||
|
|
||||||
configFilePath =
|
configFilePath =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||||
"Library/Application Support/${configDir}/User/settings.json"
|
"Library/Application Support/${configDir}/User/settings.json"
|
||||||
|
@ -21,7 +27,7 @@ let
|
||||||
"${config.xdg.configHome}/${configDir}/User/settings.json";
|
"${config.xdg.configHome}/${configDir}/User/settings.json";
|
||||||
|
|
||||||
# TODO: On Darwin where are the extensions?
|
# TODO: On Darwin where are the extensions?
|
||||||
extensionPath = ".${vscodePname}/extensions";
|
extensionPath = ".${extensionDir}/extensions";
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue