From fc280676f58092e9c7904a89dbebc043d6b6ab16 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 11 Jun 2026 02:01:26 -0700 Subject: [PATCH] nix-darwin: don't sync codex-history on mac-demarco-mini (disk) The codex archive is ~1GB and the mac runs near full; cloning it would break darwin rebuilds. Its codex sessions are already merged into the repo. Keep claude-history (small) syncing there. Co-Authored-By: Claude Opus 4.8 --- nix-darwin/home/git-sync.nix | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nix-darwin/home/git-sync.nix b/nix-darwin/home/git-sync.nix index a0405c95..3707990d 100644 --- a/nix-darwin/home/git-sync.nix +++ b/nix-darwin/home/git-sync.nix @@ -11,7 +11,6 @@ orgPath = "${config.home.homeDirectory}/org"; passwordStorePath = "${config.home.homeDirectory}/.password-store"; claudePath = "${config.home.homeDirectory}/.claude"; - codexPath = "${config.home.homeDirectory}/.codex"; in { services.git-sync = { enable = true; @@ -31,11 +30,11 @@ in { uri = "git@github.com:colonelpanic8/claude-history.git"; interval = 600; }; - codex-history = { - path = codexPath; - uri = "git@github.com:colonelpanic8/codex-history.git"; - interval = 600; - }; + # NB: codex-history is intentionally NOT synced on mac-demarco-mini. + # The codex archive is ~1GB and this machine runs chronically near full + # (APFS container ~94% used); cloning it would break every darwin + # rebuild. mac's own Codex sessions are already merged into the repo — + # it just doesn't receive. Re-enable once the disk has headroom. }; }; @@ -49,7 +48,5 @@ in { # untracked session files and throttle event-driven syncs. git-sync-claude-history.config.ProgramArguments = lib.mkForce ["${gitSyncPackage}/bin/git-sync-rs" "-d" claudePath "watch" "--new-files" "true" "--min-interval" "300"]; - git-sync-codex-history.config.ProgramArguments = - lib.mkForce ["${gitSyncPackage}/bin/git-sync-rs" "-d" codexPath "watch" "--new-files" "true" "--min-interval" "300"]; }; }