1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/home-manager
Christina O'Donnell ce76393bb7
home-manager: add support for custom backup command (#6424) (#7153)
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.
2025-10-30 12:26:13 -05:00
..
po Translate using Weblate (Chinese (Simplified Han script)) 2025-10-27 11:54:37 -05:00
build-news.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
completion.bash home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
completion.fish home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
completion.zsh home-manager: add autocomplete for --log-format 2025-03-19 13:32:33 -05:00
default.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
home-manager home-manager: add support for custom backup command (#6424) (#7153) 2025-10-30 12:26:13 -05:00
home-manager.nix home-manager: add repl subcommand (#5600) 2025-06-29 18:12:33 -05:00
install.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00