~ruther/guix-local

02be907a12dc291b02f6e895ca15f2fb20037185 — Bruno Victal 3 years ago 9fb8a48
system: Simplify nsswitch binding.

* gnu/system.scm (operating-system-etc-service): Simplify nsswitch binding.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 3 insertions(+), 4 deletions(-)

M gnu/system.scm
M gnu/system.scm => gnu/system.scm +3 -4
@@ 1001,10 1001,9 @@ the /etc directory."

         (hurd       (operating-system-hurd os))
         (issue      (plain-file "issue" (operating-system-issue os)))
         (nsswitch   (operating-system-name-service-switch os))
         (nsswitch   (and nsswitch
                          (plain-file "nsswitch.conf"
                                      (name-service-switch->string nsswitch))))
         (nsswitch   (and=> (operating-system-name-service-switch os)
                            (compose (cut plain-file "nsswitch.conf" <>)
                                     name-service-switch->string)))
         (sudoers    (operating-system-sudoers-file os))

        ;; Startup file for POSIX-compliant login shells, which set system-wide