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.
22 lines
700 B
Nix
22 lines
700 B
Nix
{ config, ... }:
|
|
{
|
|
xdg.configHome = "${config.home.homeDirectory}/config:personal";
|
|
programs.vicinae = {
|
|
enable = true;
|
|
mutableSettings = true;
|
|
settings = { };
|
|
};
|
|
assertions = [
|
|
{
|
|
assertion = !(config.home.sessionVariables ? VICINAE_OVERRIDES);
|
|
message = "Empty or disabled Vicinae override files must not export a session selector.";
|
|
}
|
|
];
|
|
nmt.script = ''
|
|
assertPathNotExists "home-files/.config/vicinae/home-manager.json"
|
|
assertPathNotExists "home-files/.config/vicinae/settings.json"
|
|
assertPathNotExists "home-files/config:personal/vicinae/home-manager.json"
|
|
assertPathNotExists "home-files/config:personal/vicinae/settings.json"
|
|
'';
|
|
}
|