services: tor: Make it easier to use UNIX sockets.
authorChris Marusich <cmmarusich@gmail.com>
Tue, 31 Jul 2018 08:13:48 +0000 (01:13 -0700)
committerChris Marusich <cmmarusich@gmail.com>
Tue, 28 Aug 2018 07:25:05 +0000 (00:25 -0700)
commit3bcb305b98e02f6c9d98e7325813fc00f18f0e6c
tree814beccc935b4a221074e6458ae2be9e9d2c377c
parentb0f951e4f04766892933e3b60d1b24ab3a8589c2
services: tor: Make it easier to use UNIX sockets.

* doc/guix.texi (Networking Services): Document it, and mention that
tor-service is deprecated.
* gnu/services/networking.scm (<tor-configuration>) <socks-socket-type>:
New field.
(tor-configuration->torrc): When socks-socket-type is 'unix, set
SocksPort to UNIX domain socket /var/run/tor/socks-sock and set
UnixSocksGroupWritable to 1.
* gnu/tests/networking.scm (%tor-os/unix-socks-socket): Instead of using
a custom config file, just set socks-socket-type to 'unix.
doc/guix.texi
gnu/services/networking.scm
gnu/tests/networking.scm