Files
home-manager/tests/modules/programs/andcli/settings-immutable-empty.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

25 lines
555 B
Nix

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