[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Examples of local-host-entries or hosts-service-type?

From: Bruno Victal
Subject: Re: Examples of local-host-entries or hosts-service-type?
Date: Tue, 21 Feb 2023 16:45:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

Hi Remco,

On 2023-02-11 11:46, Remco van 't Veer wrote:
>        (hosts-service-type config =>
>                            (cons* (host "some.ip.address.1" "machine1")
>                                   (host "some.other.ip.address" "machine2")
>                                   (local-host-entries host-name)))))

This is not the "right" way to do use the service, the proper way is to extend 
this service
(as described in the manual) by:

--8<---------------cut here---------------start------------->8---
(simple-service 'add-extra-hosts
                (list (host "" ""
                            '("" ""))
                      (host "2001:db8::1" ""
                            '("" ""))))
--8<---------------cut here---------------end--------------->8---

You only override the hosts-service-type value when you don't want to have
'localhost' as an alias of your _hostname_ or you don't want to set '' 
/ '::1'
as IPs for localhost / _hostname_.

> local-host-entries

This procedure is for internal guix use, it isn't really meant to be used 
In fact, I think it shouldn't be exported at all since it's only use is to set 
the default value of


reply via email to

[Prev in Thread] Current Thread [Next in Thread]