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: ng0
Subject: Re: Working example needed to extend tor-service with file-like object
Date: Wed, 02 Nov 2016 20:38:35 +0000

address@hidden (Ludovic Courtès) writes:

> 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’.
>

Oh! So I am thinking way too complicated in how things are
supposed to be written. Damn...

Many thanks!



reply via email to

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