Files
home-manager/tests/modules/programs/pet/layer-disabled.nix
Austin Horstman fae6e9e42c treewide: standardize mutable configuration option names
Use mutableSettings for Mise and Vicinae, and mutableSnippets for Pet.
These controls follow the same naming pattern as existing mutable options,
regardless of whether configuration uses merging or a read-only layer.

Keep Mise's existing name as a deprecated alias. Rename the freshly
introduced Pet and Vicinae options directly before the next stable
release, and update their tests and user-facing documentation. Defaults
and configuration behavior remain unchanged.
2026-10-06 12:16:19 -05:00

26 lines
584 B
Nix

{ config, ... }:
{
home.stateVersion = "21.11";
programs.pet = {
enable = false;
mutableSnippets = true;
package = null;
snippets = [ { command = "echo declarative"; } ];
};
assertions = [
{
assertion = !(config.home.sessionVariables ? PET_CONFIG_DIR);
message = "Disabled Pet must not set PET_CONFIG_DIR.";
}
{
assertion = !(config.home.activation ? pet-user-snippets);
message = "Disabled Pet must not register snippets activation.";
}
];
nmt.script = ''
assertPathNotExists "home-files/.config/pet"
'';
}