summaryrefslogtreecommitdiffstats
path: root/configs
diff options
context:
space:
mode:
Diffstat (limited to 'configs')
-rw-r--r--configs/claude.nix15
1 files changed, 14 insertions, 1 deletions
diff --git a/configs/claude.nix b/configs/claude.nix
index be2bdbe..205078b 100644
--- a/configs/claude.nix
+++ b/configs/claude.nix
@@ -19,10 +19,23 @@ let
# The tmux of claude-remote-control@NAME.
tmux = name: "${pkgs.tmux}/bin/tmux -S /run/claude/${name}/tmux";
+ # git, for the remotes and claude-remote, without gettext (25M, for
+ # git's messages in other languages than English, which the guest has
+ # none of): NO_GETTEXT, and git-sh-i18n not pointing at gettext.sh,
+ # which nixpkgs' postPatch puts there regardless. Not as an overlay of
+ # gitMinimal, which would reach everything built with it.
+ git = (pkgs.gitMinimal.override { nlsSupport = false; }).overrideAttrs (old: {
+ postPatch = builtins.replaceStrings
+ [ "--subst-var-by gettext ${pkgs.gettext}" ]
+ [ "--subst-var-by gettext /no-gettext" ]
+ old.postPatch;
+ });
+
# Root's tool for the remotes.
claude-remote = pkgs.callPackage ../pkgs/claude-remote.nix {
inherit stateDir;
systemd = config.systemd.package; # the guest's, which may be slimmer
+ gitMinimal = git;
};
# Remotes started with systemctl, rather than by multi-user.target's
@@ -111,7 +124,7 @@ in
pkgs.diffutils
pkgs.findutils
pkgs.gawk
- pkgs.gitMinimal
+ git
pkgs.gnugrep
pkgs.gnused
pkgs.ripgrep