mirror of
https://github.com/nix-community/home-manager
synced 2024-12-18 07:49:48 +01:00
files: make collision error message more helpful
Most importantly, also indicate how to use file backup for NixOS and nix-darwin modules.
This commit is contained in:
parent
5632659886
commit
f8e6694eda
1 changed files with 7 additions and 1 deletions
|
@ -48,6 +48,12 @@ for sourcePath in "$@" ; do
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -v collision ]] ; then
|
if [[ -v collision ]] ; then
|
||||||
errorEcho "Please move the above files and try again or use 'home-manager switch -b backup' to back up existing files automatically."
|
errorEcho "Please do one of the following:
|
||||||
|
- Move or remove the above files and try again.
|
||||||
|
- In standalone mode, use 'home-manager switch -b backup' to back up
|
||||||
|
files automatically.
|
||||||
|
- When used as a NixOS or nix-darwin module, set
|
||||||
|
'home-manager.backupFileExtension'
|
||||||
|
to, for example, 'backup' and rebuild."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue