mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-02 19:49:18 +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
875 B
Nix
42 lines
875 B
Nix
{ pkgs, ... }:
|
|
|
|
let
|
|
package = pkgs.writeScriptBin "antigravity" "" // {
|
|
pname = "antigravity";
|
|
version = "1.11.14";
|
|
};
|
|
in
|
|
|
|
{
|
|
antigravity-paths =
|
|
{
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
argvPath = ".antigravity/argv.json";
|
|
|
|
settingsPath =
|
|
if pkgs.stdenv.hostPlatform.isDarwin then
|
|
"Library/Application Support/Antigravity/User/settings.json"
|
|
else
|
|
".config/Antigravity/User/settings.json";
|
|
in
|
|
{
|
|
programs.antigravity = {
|
|
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}"
|
|
'';
|
|
};
|
|
}
|