mirror of
https://github.com/nix-community/home-manager.git
synced 2026-10-31 09:10:11 +00:00
Keep native settings and MCP configuration writable while applying declared values. Treat unspecified permission lists as absent in mutable native mode so activation does not reset undeclared application choices. Explicit lists, including empty lists, replace saved lists. Keep immutable and legacy defaults unchanged.
25 lines
701 B
Nix
25 lines
701 B
Nix
{ config, ... }:
|
|
{
|
|
programs.antigravity-cli = {
|
|
enable = true;
|
|
package = null;
|
|
};
|
|
assertions = [
|
|
{
|
|
assertion = config.programs.antigravity-cli.mutableSettings == false;
|
|
message = "Antigravity CLI must retain the selected settings ownership mode.";
|
|
}
|
|
{
|
|
assertion = !(config.home.activation ? antigravitySettings);
|
|
message = "Empty Antigravity settings must not schedule a merge.";
|
|
}
|
|
{
|
|
assertion = !(config.home.activation ? antigravityImmutableSettings);
|
|
message = "Empty Antigravity settings must not schedule cleanup.";
|
|
}
|
|
];
|
|
nmt.script = ''
|
|
assertPathNotExists home-files/.gemini/antigravity-cli/settings.json
|
|
'';
|
|
}
|