From 97e3022a8d2c09313fa49847f6da4d76abcfc72d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 30 Oct 2025 12:28:30 -0500 Subject: [PATCH] news: add backupCommand entry Introduced in https://github.com/nix-community/home-manager/pull/7153 Signed-off-by: Austin Horstman --- .../misc/news/2025/10/2025-10-30_12-25-46.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 modules/misc/news/2025/10/2025-10-30_12-25-46.nix diff --git a/modules/misc/news/2025/10/2025-10-30_12-25-46.nix b/modules/misc/news/2025/10/2025-10-30_12-25-46.nix new file mode 100644 index 000000000..e24a1c311 --- /dev/null +++ b/modules/misc/news/2025/10/2025-10-30_12-25-46.nix @@ -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. + ''; +}