mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
b0f951e4f0
commit
3bcb305b98
3 changed files with 57 additions and 16 deletions
|
@ -354,13 +354,7 @@ subnet 192.168.1.0 netmask 255.255.255.0 {
|
|||
(simple-operating-system
|
||||
(service tor-service-type
|
||||
(tor-configuration
|
||||
(config-file
|
||||
(plain-file "test-torrc"
|
||||
"\
|
||||
SocksPort unix:/var/run/tor/socks-sock
|
||||
UnixSocksGroupWritable 1
|
||||
")
|
||||
)))))
|
||||
(socks-socket-type 'unix)))))
|
||||
|
||||
(define (run-tor-test)
|
||||
(define os
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue