mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-03 12:09:19 +00:00
Add standalone modules for Antigravity, Cursor, Kiro, VSCodium, and Windsurf using the mkVscodeModule factory. Each module provides its own programs.<name> option namespace, allowing multiple VSCode-based editors to be configured simultaneously. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
860 B
Nix
42 lines
860 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
package = pkgs.writeScriptBin "vscodium" "" // {
|
|
pname = "vscodium";
|
|
version = "1.109.51242";
|
|
};
|
|
in
|
|
|
|
{
|
|
vscodium-paths =
|
|
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
argvPath = ".vscode-oss/argv.json";
|
|
|
|
settingsPath =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"Library/Application Support/VSCodium/User/settings.json"
|
|
else
|
|
".config/VSCodium/User/settings.json";
|
|
in
|
|
{
|
|
programs.vscodium = {
|
|
enable = true;
|
|
inherit package;
|
|
argvSettings.enable-crash-reporter = false;
|
|
profiles.default = {
|
|
enableUpdateCheck = false;
|
|
enableExtensionUpdateCheck = false;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists "home-files/${argvPath}"
|
|
assertFileExists "home-files/${settingsPath}"
|
|
'';
|
|
};
|
|
}
|