Files
home-manager/tests/modules/programs/andcli/settings-disabled.nix
Austin Horstman 4143d156c0 andcli: add opt-in mutable settings
Keep the application configuration writable while applying declared
settings. Preserve undeclared state and use ordinary collision handling
when returning to linked YAML configuration.
2026-10-04 20:17:49 -05:00

26 lines
590 B
Nix

{
config,
...
}:
{
programs.andcli = {
enable = false;
mutableSettings = true;
package = null;
settings.options.show_tokens = false;
};
xdg.configHome = "${config.home.homeDirectory}/custom-config";
assertions = [
{
assertion = !(config.home.activation ? andcliMutableSettings);
message = "andcli settings-disabled must not create mutable activation.";
}
];
nmt.script = ''
assertPathNotExists "home-files/custom-config/andcli/config.yaml"
assertPathNotExists "home-files/Library/Application Support/andcli/config.yaml"
'';
}