Files
home-manager/tests/modules/programs/algia/settings-immutable-empty.nix
Austin Horstman e090a36ef0 algia: add opt-in mutable settings
Keep application settings writable while applying declared values.
Restore unchanged immutable links through the shared helper and keep
private-key management explicit.
2026-10-04 20:17:54 -05:00

24 lines
674 B
Nix

{ config, pkgs, ... }:
{
xdg.configHome = "${config.home.homeDirectory}/custom-config";
programs.algia = {
enable = true;
mutableSettings = false;
};
assertions = [
{
assertion = !(config.home.activation ? algiaMutableSettings);
message = "Inactive algia settings must not create mutable activation.";
}
{
assertion = !(config.home.activation ? algiaImmutableSettings);
message = "Inactive algia settings must not create immutable cleanup.";
}
];
nmt.script = ''
assertPathNotExists "home-files/${
if pkgs.stdenv.hostPlatform.isDarwin then ".config" else "custom-config"
}/algia/config.json"
'';
}