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 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,6 @@
|
|||||||
orgPath = "${config.home.homeDirectory}/org";
|
orgPath = "${config.home.homeDirectory}/org";
|
||||||
passwordStorePath = "${config.home.homeDirectory}/.password-store";
|
passwordStorePath = "${config.home.homeDirectory}/.password-store";
|
||||||
claudePath = "${config.home.homeDirectory}/.claude";
|
claudePath = "${config.home.homeDirectory}/.claude";
|
||||||
codexPath = "${config.home.homeDirectory}/.codex";
|
|
||||||
in {
|
in {
|
||||||
services.git-sync = {
|
services.git-sync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -31,11 +30,11 @@ in {
|
|||||||
uri = "git@github.com:colonelpanic8/claude-history.git";
|
uri = "git@github.com:colonelpanic8/claude-history.git";
|
||||||
interval = 600;
|
interval = 600;
|
||||||
};
|
};
|
||||||
codex-history = {
|
# NB: codex-history is intentionally NOT synced on mac-demarco-mini.
|
||||||
path = codexPath;
|
# The codex archive is ~1GB and this machine runs chronically near full
|
||||||
uri = "git@github.com:colonelpanic8/codex-history.git";
|
# (APFS container ~94% used); cloning it would break every darwin
|
||||||
interval = 600;
|
# 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.
|
# untracked session files and throttle event-driven syncs.
|
||||||
git-sync-claude-history.config.ProgramArguments =
|
git-sync-claude-history.config.ProgramArguments =
|
||||||
lib.mkForce ["${gitSyncPackage}/bin/git-sync-rs" "-d" claudePath "watch" "--new-files" "true" "--min-interval" "300"];
|
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"];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user