From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Working example needed to extend tor-service with file-like object Date: Wed, 02 Nov 2016 20:38:35 +0000 Message-ID: <877f8lpqgk.fsf@we.make.ritual.n0.is> References: <877f8p7o8m.fsf@we.make.ritual.n0.is> <87r36ukkzg.fsf@gnu.org> <87bmxxvqy7.fsf@we.make.ritual.n0.is> <87mvhhlus7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c22JS-0005RU-2z for help-guix@gnu.org; Wed, 02 Nov 2016 16:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c22JR-0001K7-2E for help-guix@gnu.org; Wed, 02 Nov 2016 16:39:10 -0400 In-Reply-To: <87mvhhlus7.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 02 Nov 2016 17:18:48 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org ludo@gnu.org (Ludovic Courtès) writes: > ng0 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!