This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools: improve mutt and muchsync integration

- Update mutt to use muchsync tool via self.packages with -vv flags
- Fix muchsync wrapper to handle flags properly when auto-detecting hosts
- Now supports: muchsync -vv (auto-detects host) or muchsync -vv hostname

+14 -5
+13 -4
tools/muchsync/flake-module.nix
··· 41 41 fi 42 42 } 43 43 44 - # If no arguments provided, do a sync with green host 45 - if [ $# -eq 0 ]; then 44 + # Check if arguments look like flags or a hostname 45 + has_hostname=false 46 + for arg in "$@"; do 47 + case "$arg" in 48 + -*) ;; # This is a flag 49 + *) has_hostname=true; break ;; # Found a non-flag argument 50 + esac 51 + done 52 + 53 + # If only flags provided (or no args), do a sync with green host 54 + if [ "$has_hostname" = "false" ]; then 46 55 host=$(find_green_host) 47 56 echo "Syncing with $host..." >&2 48 57 ··· 56 65 tor_hostname=$(CLAN_DIR="${self}" "$clan_path/bin/clan" vars get green tor-ssh/tor-hostname) 57 66 58 67 # Use muchsync with custom ssh command via tornade 59 - exec muchsync -s "$tornade_path/bin/tornade ssh" lass@"$tor_hostname" 68 + exec muchsync "$@" -s "$tornade_path/bin/tornade ssh" lass@"$tor_hostname" 60 69 else 61 - exec muchsync lass@"$host" 70 + exec muchsync "$@" lass@"$host" 62 71 fi 63 72 else 64 73 # Pass through arguments to muchsync
+1 -1
tools/mutt/flake-module.nix
··· 183 183 bind index \Cr noop 184 184 macro index \Cr \ 185 185 "<enter-command>unset wait_key<enter> \ 186 - <shell-escape>mailsync<enter> 186 + <shell-escape>${self.packages.${pkgs.system}.muchsync}/bin/muchsync -vv<enter> 187 187 188 188 #killed 189 189 bind index d noop