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 <noreply@anthropic.com>
This commit is contained in:
@@ -10,6 +10,7 @@
|
|||||||
else pkgs.git-sync;
|
else pkgs.git-sync;
|
||||||
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";
|
||||||
in {
|
in {
|
||||||
services.git-sync = {
|
services.git-sync = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -24,6 +25,11 @@ in {
|
|||||||
path = passwordStorePath;
|
path = passwordStorePath;
|
||||||
uri = "git@github.com:colonelpanic8/.password-store.git";
|
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];
|
lib.mkForce ["${gitSyncPackage}/bin/git-sync" "-d" orgPath];
|
||||||
git-sync-password-store.config.ProgramArguments =
|
git-sync-password-store.config.ProgramArguments =
|
||||||
lib.mkForce ["${gitSyncPackage}/bin/git-sync" "-d" passwordStorePath];
|
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"];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user