fix(home-manager): allow overwriting stale SSH config backups

- Enable home-manager.overwriteBackup alongside backupFileExtension so activation no longer aborts on an occupied ~/.ssh/config.backup path.
- Document why this is needed: ~/.ssh/config is kept as a user-owned regular file by the de-symlink workaround, so Home Manager must back it up on every generation change.
This commit is contained in:
kiskaadee committed 2026-11-17 12:04:42 -05:00
1 parent 1aff05b4f2
commit c1b44e049c
1 file changed
+3
+3
View File
@@ -148,6 +148,9 @@
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.backupFileExtension = "backup"; home-manager.backupFileExtension = "backup";
# ~/.ssh/config is kept as a user-owned regular file (see the
# de-symlink workaround), so HM hits an occupied .backup path.
home-manager.overwriteBackup = true;
home-manager.extraSpecialArgs = { inherit inputs; }; home-manager.extraSpecialArgs = { inherit inputs; };
home-manager.users.kiskaadee = { home-manager.users.kiskaadee = {
imports = [ imports = [