guix_mirror_bot pushed a commit to branch master
in repository guix.

commit a12f0f08202c3d9b0c1eeae480a221ff31da689b
Author: Ludovic Courtès <[email protected]>
AuthorDate: Mon Sep 14 08:21:41 2026 +0200

    system: Export ‘local-host-entries’.
    
    ‘local-host-entries’ is the recommended substitute for
    ‘local-host-aliases’ (deprecated), so it must be made public.
    
    * gnu/system.scm (local-host-entries): Export.
    * doc/guix.texi (Base Services): Document it.
    
    Signed-off-by: Ludovic Courtès <[email protected]>
    Merges: #11235
---
 doc/guix.texi  | 5 +++++
 gnu/system.scm | 1 +
 2 files changed, 6 insertions(+)

diff --git a/doc/guix.texi b/doc/guix.texi
index 6000a7c9385..dfd399953c8 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -20852,6 +20852,11 @@ Return a new record for the host at @var{address} with 
the given
 host names.
 @end deffn
 
+@deffn {Procedure} local-host-entries
+Return a list of @code{host} records for @var{host-name}, one for
+@code{127.0.0.1} and one for @code{::1}.
+@end deffn
+
 @defvar login-service-type
 Type of the service that provides a console login service, whose value
 is a @code{<login-configuration>} object.
diff --git a/gnu/system.scm b/gnu/system.scm
index bfcb4025a75..2fae558db0e 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -176,6 +176,7 @@
             boot-parameters->menu-entry
 
             local-host-aliases                    ;deprecated
+            local-host-entries
             %root-account
             %default-privileged-programs
             %setuid-programs

Reply via email to