Skip to content

feat(home-manager): backup linked files once if they already exist during activation#107

Merged
rrvsh merged 1 commit intoprimefrom
fix/codex-managed-config
Dec 16, 2025
Merged

feat(home-manager): backup linked files once if they already exist during activation#107
rrvsh merged 1 commit intoprimefrom
fix/codex-managed-config

Conversation

@rrvsh
Copy link
Owner

@rrvsh rrvsh commented Dec 16, 2025

Please do one of the following:

  • In standalone mode, use 'home-manager switch -b backup' to back up files automatically.
  • When used as a NixOS or nix-darwin module, set either
    • 'home-manager.backupFileExtension', or
    • 'home-manager.backupCommand',
      to move the file to a new location in the same directory, or run a custom command.
  • Set 'force = true' on the related file options to forcefully overwrite the files below. eg. 'xdg.configFile."mimeapps.list".force = true'
    Existing file '/Users/rafiq/.codex/config.toml' would be clobbered
    Error:
    0: Darwin activation failed
    1: Activating configuration (

@rrvsh rrvsh changed the title fix .codex/config.toml being there all the time feat(home-manager): backup linked files once if they already exist during activation Dec 16, 2025
@rrvsh rrvsh marked this pull request as ready for review December 16, 2025 00:51
@rrvsh rrvsh force-pushed the fix/codex-managed-config branch from ee56550 to 4b6347c Compare December 16, 2025 00:52
@rrvsh rrvsh merged commit 2aa3f9d into prime Dec 16, 2025
1 of 2 checks passed
@rrvsh rrvsh deleted the fix/codex-managed-config branch December 16, 2025 00:53
@github-project-automation github-project-automation bot moved this from Todo to Done in cathedral Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant