diff --git a/modules/programs/vscode.nix b/modules/programs/vscode.nix index b77e7248..cf7ac722 100644 --- a/modules/programs/vscode.nix +++ b/modules/programs/vscode.nix @@ -14,6 +14,12 @@ let "vscodium" = "VSCodium"; }.${vscodePname}; + extensionDir = { + "vscode" = "vscode"; + "vscode-insiders" = "vscode-insiders"; + "vscodium" = "vscode-oss"; + }.${vscodePname}; + configFilePath = if pkgs.stdenv.hostPlatform.isDarwin then "Library/Application Support/${configDir}/User/settings.json" @@ -21,7 +27,7 @@ let "${config.xdg.configHome}/${configDir}/User/settings.json"; # TODO: On Darwin where are the extensions? - extensionPath = ".${vscodePname}/extensions"; + extensionPath = ".${extensionDir}/extensions"; in {