diff options
| author | Bruno Victal <mirai@makinata.eu> | 2023-03-10 20:21:21 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-03-13 15:08:32 +0100 |
| commit | 02be907a12dc291b02f6e895ca15f2fb20037185 (patch) | |
| tree | 75da5f55b2058b57a71482d83ebb11572c0707c4 /gnu/system.scm | |
| parent | 9fb8a480d5aec9186908e92ad18b31455f4aab6b (diff) | |
system: Simplify nsswitch binding.
* gnu/system.scm (operating-system-etc-service): Simplify nsswitch binding.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/system.scm')
| -rw-r--r-- | gnu/system.scm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index bb26d7c9a57..2947d1321f5 100644 --- a/gnu/system.scm +++ b/gnu/system.scm | |||
| @@ -1001,10 +1001,9 @@ the /etc directory." | |||
| 1001 | 1001 | ||
| 1002 | (hurd (operating-system-hurd os)) | 1002 | (hurd (operating-system-hurd os)) |
| 1003 | (issue (plain-file "issue" (operating-system-issue os))) | 1003 | (issue (plain-file "issue" (operating-system-issue os))) |
| 1004 | (nsswitch (operating-system-name-service-switch os)) | 1004 | (nsswitch (and=> (operating-system-name-service-switch os) |
| 1005 | (nsswitch (and nsswitch | 1005 | (compose (cut plain-file "nsswitch.conf" <>) |
| 1006 | (plain-file "nsswitch.conf" | 1006 | name-service-switch->string))) |
| 1007 | (name-service-switch->string nsswitch)))) | ||
| 1008 | (sudoers (operating-system-sudoers-file os)) | 1007 | (sudoers (operating-system-sudoers-file os)) |
| 1009 | 1008 | ||
| 1010 | ;; Startup file for POSIX-compliant login shells, which set system-wide | 1009 | ;; Startup file for POSIX-compliant login shells, which set system-wide |
