mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-16 22:11:07 +01:00
This adds a new backupCommand option to allow users to specify a custom command to run on existing files during activation, as an alternative to the existing backupFileExtension mechanism. Adds backupCommand option to NixOS and nix-darwin modules. Exports HOME_MANAGER_BACKUP_COMMAND environment variable when set. Updates file activation logic to use the custom backup command if provided, falling back to the existing backup extension logic. Updates collision checking and user-facing instructions to mention the new option. This enables advanced backup workflows, such as moving files to trash or archiving with custom tools, before managing them with Home Manager. |
||
|---|---|---|
| .. | ||
| accounts | ||
| config | ||
| files | ||
| i18n/input-method | ||
| launchd | ||
| lib | ||
| lib-bash | ||
| misc | ||
| po | ||
| programs | ||
| services | ||
| targets | ||
| dbus.nix | ||
| default.nix | ||
| deprecations.nix | ||
| files.nix | ||
| home-environment.nix | ||
| manual.nix | ||
| modules.nix | ||
| systemd-activate.sh | ||
| systemd.nix | ||
| wayland.nix | ||
| xresources.nix | ||
| xsession.nix | ||