From 1c0377f3ad22702ddfd1fd0e5c1e2b6413849feb Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 10 Jun 2026 23:33:39 -0700 Subject: [PATCH] nix-darwin: sync ~/.claude history repo on mac-demarco-mini kat's existing claude history has been merged into the claude-history repo and the local checkout converted, mirroring the NixOS rollout. Co-Authored-By: Claude Fable 5 --- nix-darwin/home/git-sync.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nix-darwin/home/git-sync.nix b/nix-darwin/home/git-sync.nix index 2d51a70b..47cb6496 100644 --- a/nix-darwin/home/git-sync.nix +++ b/nix-darwin/home/git-sync.nix @@ -10,6 +10,7 @@ else pkgs.git-sync; orgPath = "${config.home.homeDirectory}/org"; passwordStorePath = "${config.home.homeDirectory}/.password-store"; + claudePath = "${config.home.homeDirectory}/.claude"; in { services.git-sync = { enable = true; @@ -24,6 +25,11 @@ in { path = passwordStorePath; uri = "git@github.com:colonelpanic8/.password-store.git"; }; + claude-history = { + path = claudePath; + uri = "git@github.com:colonelpanic8/claude-history.git"; + interval = 600; + }; }; }; @@ -33,5 +39,9 @@ in { lib.mkForce ["${gitSyncPackage}/bin/git-sync" "-d" orgPath]; git-sync-password-store.config.ProgramArguments = lib.mkForce ["${gitSyncPackage}/bin/git-sync" "-d" passwordStorePath]; + # Live Claude sessions append to their transcript constantly; sync + # 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"]; }; }