From: Tobias Geerinckx-Rice <somebody@not-sent-or-endorsed-by.tobias.gr>
To: Giovanni Biscuolo <g@xelera.eu>
Cc: help-guix@gnu.org
Subject: Re: set dnsdomainname
Date: Wed, 06 Mar 2019 10:21:13 +0100 [thread overview]
Message-ID: <87zhq8gxyu.fsf@nckx> (raw)
In-Reply-To: <87lg1szc9a.fsf@roquette.mug.biscuolo.net>
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/…-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.
Kind regards,
T G-R
next prev parent reply other threads:[~2019-03-06 9:21 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 [this message]
2019-03-06 19:23 ` Marco van Hulten
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=87zhq8gxyu.fsf@nckx \
--to=somebody@not-sent-or-endorsed-by.tobias.gr \
--cc=g@xelera.eu \
--cc=help-guix@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).