Files
home-manager/tests/modules/programs/alistral/settings-empty.nix
Austin Horstman 0b5c5f1672 alistral: add opt-in mutable settings
Keep credentials and application configuration writable while applying
declared values. Seed the required token map and use the same Linux XDG
path in both modes, preserving the macOS location and existing home.file
overrides. Restore byte-identical files before linking read-only settings.
2026-10-04 20:17:45 -05:00

23 lines
697 B
Nix

{ config, ... }:
{
xdg.configHome = "${config.home.homeDirectory}/custom-config";
programs.alistral = {
enable = true;
mutableSettings = true;
};
assertions = [
{
assertion = !(config.home.activation ? alistralMutableSettings);
message = "Inactive alistral settings must not create mutable activation.";
}
{
assertion = !(config.home.activation ? alistralImmutableSettings);
message = "Inactive alistral settings must not create immutable cleanup.";
}
];
nmt.script = ''
assertPathNotExists "home-files/custom-config/alistral/config.json"
assertPathNotExists "home-files/Library/Application Support/alistral/config.json"
'';
}