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 hosts-service-type (list (host "192.0.2.1" "example.com" '("example.net" "example.org")) (host "2001:db8::1" "example.com" '("example.net" "example.org")))) --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 '127.0.0.1' / '::1' as IPs for localhost / _hostname_. > local-host-entries This procedure is for internal guix use, it isn't really meant to be used outside. In fact, I think it shouldn't be exported at all since it's only use is to set the default value of hosts-service-type. Cheers, Bruno