mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
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.
23 lines
697 B
Nix
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"
|
|
'';
|
|
}
|