help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Working example needed to extend tor-service with file-like object


From: Ludovic Courtès
Subject: Re: Working example needed to extend tor-service with file-like object
Date: Wed, 02 Nov 2016 17:18:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

ng0 <address@hidden> skribis:

> Our default config (torrc) is not so pleasant (well, it's
> intentional minimal). I have torrc values, unrelated to
> hidden-service, I need to add. Like, exclude certain countries
> etc. For this I want to understand how a file-like object would
> look like in the context of (services) in config.scm, so I can be
> sure I apply the correct thing.

Oh, well:

  (tor-service (plain-file "tor.conf" "OptionOne Foo\nOptionTwo Bar\n“))

or:

  (tor-service (local-file "../my-tor.conf"))

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]