[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/18: system: Simplify nsswitch binding.
From: |
guix-commits |
Subject: |
02/18: system: Simplify nsswitch binding. |
Date: |
Mon, 13 Mar 2023 10:11:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 02be907a12dc291b02f6e895ca15f2fb20037185
Author: Bruno Victal <mirai@makinata.eu>
AuthorDate: Fri Mar 10 20:21:21 2023 +0000
system: Simplify nsswitch binding.
* gnu/system.scm (operating-system-etc-service): Simplify nsswitch binding.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/system.scm | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/gnu/system.scm b/gnu/system.scm
index bb26d7c9a5..2947d1321f 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -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
- 08/18: environment: Clear 'TERM' when checking environment., (continued)
- 08/18: environment: Clear 'TERM' when checking environment., guix-commits, 2023/03/13
- 04/18: doc: %desktop-services: Fix incorrect description., guix-commits, 2023/03/13
- 10/18: gnu: rnp: Improve package style., guix-commits, 2023/03/13
- 11/18: gnu: font-iosevka: Update to 20.0.0., guix-commits, 2023/03/13
- 12/18: gnu: Add font-iosevka-ss08., guix-commits, 2023/03/13
- 13/18: gnu: Add font-iosevka-ss09., guix-commits, 2023/03/13
- 14/18: gnu: pumpa: Update upsream URL., guix-commits, 2023/03/13
- 15/18: doc: Fix incorrect @deffn usage for service-types., guix-commits, 2023/03/13
- 17/18: doc: Use @defun for procedures., guix-commits, 2023/03/13
- 16/18: doc: Fix incorrect @deffn usage for data types., guix-commits, 2023/03/13
- 02/18: system: Simplify nsswitch binding.,
guix-commits <=
- 03/18: system: Remove redundant gexp-ungexp usage., guix-commits, 2023/03/13
- 05/18: packages: Use SRFI-71 instead of SRFI-11., guix-commits, 2023/03/13
- 01/18: packages: Consider 'patches' by 'package-direct-sources'., guix-commits, 2023/03/13
- 07/18: guix: Strip #:use-module lists., guix-commits, 2023/03/13
- 09/18: gnu: rnp: Update to 0.16.2., guix-commits, 2023/03/13
- 18/18: doc: Use @defmac and @defspec for macros., guix-commits, 2023/03/13