all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Marco van Hulten <Marco.Hulten@uib.no>
To: Tobias Geerinckx-Rice <somebody@not-sent-or-endorsed-by.tobias.gr>
Cc: help-guix@gnu.org
Subject: Re: set dnsdomainname
Date: Wed, 6 Mar 2019 20:23:34 +0100	[thread overview]
Message-ID: <20190306202334.463b2435@jasniac.instanton> (raw)
In-Reply-To: <87zhq8gxyu.fsf@nckx>

Je  6 mrt 10:21 skribis Tobias:
> 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/…-hosts and links it as 
>   /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 
> repetition, if I'd bother.

Great, this works fine!  Thanks, Giovanni and Tobias!

—Marco

      reply	other threads:[~2019-03-06 19:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05 10:30 set dnsdomainname Marco van Hulten
2019-03-05 18:44 ` Marco van Hulten
2019-03-06  7:35   ` Giovanni Biscuolo
2019-03-06  9:21     ` Tobias Geerinckx-Rice
2019-03-06 19:23       ` Marco van Hulten [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

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

  git send-email \
    --in-reply-to=20190306202334.463b2435@jasniac.instanton \
    --to=marco.hulten@uib.no \
    --cc=help-guix@gnu.org \
    --cc=marco@hulten.org \
    --cc=somebody@not-sent-or-endorsed-by.tobias.gr \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.