feat: work on profinity

This commit is contained in:
2026-04-14 08:43:56 +00:00
parent 6e72841337
commit 305efdbbae
2 changed files with 41 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
rust = import ./rust.nix { inherit self system pkgs; };
haskell = import ./haskell.nix { inherit self system pkgs; };
neuro = import ./neuro.nix { inherit self system pkgs; };
xmpp = import ./xmpp.nix { inherit self system pkgs; };
default = pkgs.mkShell {
buildInputs =
(with self.packages.${system}; [

40
devshell/xmpp.nix Normal file
View File

@@ -0,0 +1,40 @@
{
system,
pkgs,
self,
}: let
proxychainsConf = pkgs.writeText "proxychains.conf" ''
strict_chain
proxy_dns
tcp_read_time_out 15000
tcp_connect_time_out 8000
[ProxyList]
socks5 127.0.0.1 1080
'';
# Wrapper script for profanity with proxy
profanity-proxy = pkgs.writeShellScriptBin "profanity-proxy" ''
exec ${pkgs.proxychains-ng}/bin/proxychains4 -f ${proxychainsConf} ${pkgs.profanity}/bin/profanity "$@"
'';
in pkgs.mkShell {
buildInputs = [
pkgs.profanity
pkgs.proxychains-ng
profanity-proxy
];
shellHook = ''
echo ""
echo "=== XMPP DevShell ==="
echo ""
echo "1. Start SSH SOCKS proxy (in another terminal):"
echo " ssh -D 1080 -N neuro"
echo ""
echo "2. Run profanity with proxy:"
echo " profanity-proxy"
echo ""
echo "3. In profanity:"
echo " /connect yukkop@accord.tube"
echo ""
'';
}