From c4aaddeaecc09554c92518fd904e3e84b497ed09 Mon Sep 17 00:00:00 2001 From: fidgetingbits Date: Mon, 6 Oct 2025 21:16:04 +0800 Subject: [PATCH] home-manager: Document 'force = true' option in error output Add a note about 'force = true' as an option for addressing collision errors --- modules/files/check-link-targets.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/files/check-link-targets.sh b/modules/files/check-link-targets.sh index ceb335c65..21ffba0f3 100644 --- a/modules/files/check-link-targets.sh +++ b/modules/files/check-link-targets.sh @@ -54,7 +54,10 @@ if [[ ${#collisionErrors[@]} -gt 0 ]] ; then " files automatically. - When used as a NixOS or nix-darwin module, set"\ " 'home-manager.backupFileExtension'"\ -" to, for example, 'backup' and rebuild." +" to, for example, 'backup' and rebuild. +- Set 'force = true' on the related file options to forcefully overwrite"\ +" the files below. eg. 'xdg.configFile.\"mimeapps.list\".force = true'" + for error in "${collisionErrors[@]}" ; do errorEcho "$error" done