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:
parent
ce76393bb7
commit
97e3022a8d
1 changed files with 17 additions and 0 deletions
17
modules/misc/news/2025/10/2025-10-30_12-25-46.nix
Normal file
17
modules/misc/news/2025/10/2025-10-30_12-25-46.nix
Normal 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.
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue