From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: documentation/behavior unclear of (tor-hidden-service) Date: Sat, 4 Mar 2017 16:21:26 +0000 Message-ID: <20170304162126.urcuuh6b5wg3eequ@abyayala> References: <20170304155916.slok53nrcporwwat@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ckBMZ-00027c-LJ for guix-devel@gnu.org; Sat, 04 Mar 2017 10:12:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ckBMU-00032y-UW for guix-devel@gnu.org; Sat, 04 Mar 2017 10:12:51 -0500 Received: from fragranza.investici.org ([178.175.144.26]:49024) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ckBMU-00031j-HR for guix-devel@gnu.org; Sat, 04 Mar 2017 10:12:46 -0500 Received: from [178.175.144.26] (fragranza [178.175.144.26]) (Authenticated sender: niasterisk@grrlz.net) by localhost (Postfix) with ESMTPSA id 1A6722C02A7 for ; Sat, 4 Mar 2017 15:12:43 +0000 (UTC) Content-Disposition: inline In-Reply-To: <20170304155916.slok53nrcporwwat@abyayala> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org On 17-03-04 15:59:16, ng0 wrote: > I have a question regarding the (tor-hidden-service) service. > > When I have an previously generated hostname, let's call it > "fooschnickens1234.onion" for the purpose of this message, my approach > on a system like Gentoo was to manually place the hostname and > private-key into the /var/lib/tor/hidden-services/$name-i-gave-in-torrc > folder and change the permissions afterwards. > > Now this service is unclear about wether it would overwrite the files I > have when the new system generation is done building (reconfigure). > > It would be good to know wether the files can be copied into place in > advance or if one has to wait to replace it afterwards. > Okay, be your own testpilot: A quick 'guix system build config.scm' and before reconfiguring inserting my values into the then new generated /var/lib/tor/hidden-services/foo/ and the files in there, then running reconfigure, rebooting and I can connect to my hostname(s). moving on, this could be improved: In case one aims for keeping the config public this is a bad idea but what about creating the hostname + private_key in $name as plain-file? Would this be overwritten by (tor-hidden-service) or would this just be bad practice but "whatever works for you"?