fix(home-manager): back up clobbered dotfiles on activation #10

Merged
lyrathorpe merged 1 commits from fix/hm-dotfile-backup into main 2026-06-02 17:30:29 +01:00
Owner

Set home-manager.backupFileExtension = "backup" on the NixOS and Darwin base modules. Existing machines carry hand-written ~/.zshrc and ~/.zshenv that home-manager would refuse to overwrite, aborting activation. With a backup extension, the originals are saved as .backup and activation proceeds. The oh-my-zsh setup is already declared in lyrathorpe/home/shell.nix, so the generated files supersede the old ones.

Set home-manager.backupFileExtension = "backup" on the NixOS and Darwin base modules. Existing machines carry hand-written ~/.zshrc and ~/.zshenv that home-manager would refuse to overwrite, aborting activation. With a backup extension, the originals are saved as .backup and activation proceeds. The oh-my-zsh setup is already declared in lyrathorpe/home/shell.nix, so the generated files supersede the old ones.
lyrathorpe added 1 commit 2026-06-02 17:30:23 +01:00
fix(home-manager): back up clobbered dotfiles on activation
CI / flake (pull_request) Successful in 1m52s
27e91508cc
Set home-manager.backupFileExtension = "backup" on the NixOS and Darwin base modules. Existing machines carry hand-written ~/.zshrc and ~/.zshenv that home-manager would refuse to overwrite, aborting activation. With a backup extension, the originals are saved as .backup and activation proceeds. The oh-my-zsh setup is already declared in lyrathorpe/home/shell.nix, so the generated files supersede the old ones.
lyrathorpe merged commit eeb1c72d7f into main 2026-06-02 17:30:29 +01:00
lyrathorpe deleted branch fix/hm-dotfile-backup 2026-06-02 17:30:30 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lyrathorpe/nixfiles#10