1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

news: add backupCommand entry

Introduced in https://github.com/nix-community/home-manager/pull/7153

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-30 12:28:30 -05:00
parent ce76393bb7
commit 97e3022a8d

View file

@ -0,0 +1,17 @@
{
time = "2025-10-30T17:25:46+00:00";
condition = true;
message = ''
A new option 'backupCommand' is now available for Home Manager activation.
This option allows you to specify a custom command to run on existing files
during activation. If set, it takes precedence over 'backupFileExtension',
but can work together with it by referencing the '$HOME_MANAGER_BACKUP_EXT'
environment variable in your command.
This enables advanced backup workflows, such as moving files to trash or
archiving with custom tools, before managing them with Home Manager.
The option is available in standalone, NixOS, and nix-darwin configurations.
'';
}