system: Simplify nsswitch binding.
* gnu/system.scm (operating-system-etc-service): Simplify nsswitch binding. Signed-off-by: Ludovic Courtès <ludo@gnu.org>master
parent
9fb8a480d5
commit
02be907a12
|
@ -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
|
||||
|
|
Reference in New Issue