mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 22:26:40 -05:00
system: Simplify nsswitch binding.
* gnu/system.scm (operating-system-etc-service): Simplify nsswitch binding. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
9fb8a480d5
commit
02be907a12
1 changed files with 3 additions and 4 deletions
|
@ -1001,10 +1001,9 @@ (define* (operating-system-etc-service os)
|
|||
|
||||
(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
|
||||
|
|
Loading…
Reference in a new issue