unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: ng0 <ng0@we.make.ritual.n0.is>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Working example needed to extend tor-service with file-like object
Date: Wed, 02 Nov 2016 20:38:35 +0000	[thread overview]
Message-ID: <877f8lpqgk.fsf@we.make.ritual.n0.is> (raw)
In-Reply-To: <87mvhhlus7.fsf@gnu.org> ("Ludovic Courtès"'s message of "Wed, 02 Nov 2016 17:18:48 +0100")

ludo@gnu.org (Ludovic Courtès) writes:

> ng0 <ng0@we.make.ritual.n0.is> 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	other threads:[~2016-11-02 20:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-30 17:14 Working example needed to extend tor-service with file-like object ng0
2016-11-02 14:35 ` Ludovic Courtès
2016-11-02 15:31   ` ng0
2016-11-02 16:18     ` Ludovic Courtès
2016-11-02 20:38       ` ng0 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877f8lpqgk.fsf@we.make.ritual.n0.is \
    --to=ng0@we.make.ritual.n0.is \
    --cc=help-guix@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).