summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-04-29 21:49:48 +0200
committerAlan Pearce2024-04-29 21:49:48 +0200
commitc0adc4b8e20b2594a6bc655db7795d85a18c34cf (patch)
treee5878fca33d99d1b9b2a53a7c721f0ed8dfe9ec6
parent08e518eb6e6f78bc7ac5d08506d8bda01d118f81 (diff)
downloadnixfiles-c0adc4b8e20b2594a6bc655db7795d85a18c34cf.tar.lz
nixfiles-c0adc4b8e20b2594a6bc655db7795d85a18c34cf.tar.zst
nixfiles-c0adc4b8e20b2594a6bc655db7795d85a18c34cf.zip
home-manager: automatically move files that are in the way
-rw-r--r--user/settings/shell.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/settings/shell.nix b/user/settings/shell.nix
index 2f283bbc..d1f7edf8 100644
--- a/user/settings/shell.nix
+++ b/user/settings/shell.nix
@@ -118,7 +118,7 @@ in
 
       ho = "home-manager";
       hob = "home-manager build";
-      hos = "home-manager switch";
+      hos = "home-manager switch -b hm_bak_$(date +%Y%m%d%H%M)";
       hon = "home-manager news";
       hoh = "home-manager help";
       hop = "home-manager packages";