From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tobias Geerinckx-Rice Subject: Re: set dnsdomainname Date: Wed, 06 Mar 2019 10:21:13 +0100 Message-ID: <87zhq8gxyu.fsf@nckx> References: <20190305113013.2c1821a5@gfi063209.klientdrift.uib.no> <20190305194441.459e7b7b@jasniac.instanton> <87lg1szc9a.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:35544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Sjt-00047q-SN for help-guix@gnu.org; Wed, 06 Mar 2019 04:21:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1Sjs-0003pW-NE for help-guix@gnu.org; Wed, 06 Mar 2019 04:21:25 -0500 Received: from tobias.gr ([2001:470:7405::1]:39922) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h1Sjs-0003iG-Cz for help-guix@gnu.org; Wed, 06 Mar 2019 04:21:24 -0500 In-reply-to: <87lg1szc9a.fsf@roquette.mug.biscuolo.net> 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: Giovanni Biscuolo Cc: help-guix@gnu.org Giovanni, Marco, Giovanni Biscuolo wrote: > I'd prefer setting the contents "inline" declaring each hosts > record... but I don't know how to do it Probably easier than you thought! (host-name "lapdog.tobias.gr") ;; This creates a file /gnu/store/=E2=80=A6-hosts and links it as=20 /etc/hosts. (hosts-file (plain-file "hosts "\ 127.0.0.1 lapdog.tobias.gr localhost ::1 lapdog.tobias.gr localhost ")) Doing it in Scheme also allows one to factor out some of that ugly=20 repetition, if I'd bother. Kind regards, T G-R