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