1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-28 20:12:11 +02:00

installer: system-services->configuration: Simplify returning sexp.

* gnu/installer/services.scm (system-services->configuration): Simplify
returning sexp to improve readability.

Change-Id: I02a91523bcf4af1b6fe6476ab2f0e390559a8457
This commit is contained in:
Hilton Chain
2026-01-16 23:56:20 +08:00
parent 4c98911039
commit 50203e4181
+23 -35
View File
@@ -243,44 +243,32 @@
;; under their own account: use 'guix search KEYWORD' to search ;; under their own account: use 'guix search KEYWORD' to search
;; for packages and 'guix install PACKAGE' to install a package.\n"))))) ;; for packages and 'guix install PACKAGE' to install a package.\n")))))
(if (null? snippets) `(,@(if (null? packages)
`(,@(if (null? packages) (if (target-hurd?)
(if (target-hurd?)
`(,@package-heading
(packages %base-packages/hurd))
'())
`(,@package-heading `(,@package-heading
(packages (append (list ,@packages) (packages %base-packages/hurd))
,(if (target-hurd?) '())
'%base-packages/hurd `(,@package-heading
'%base-packages))))) (packages (append (list ,@packages)
,(if (target-hurd?)
'%base-packages/hurd
'%base-packages)))))
,@service-heading ,@service-heading
(services ,services)) ,(if (null? snippets)
`(,@(if (null? packages) `(services ,services)
(if (target-hurd?) `(services
`(,@package-heading (append (list ,@snippets
(packages %base-packages/hurd))
'())
`(,@package-heading
(packages (append (list ,@packages)
,(if (target-hurd?)
'%base-packages/hurd
'%base-packages)))))
,@service-heading ,@(if desktop?
(services (append (list ,@snippets ;; XXX: Assume 'keyboard-layout' is in scope.
`((set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
'()))
,@(if desktop? ,(vertical-space 1)
;; XXX: Assume 'keyboard-layout' is in ,(comment (G_ "\
;; scope.
`((set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
'()))
,(vertical-space 1)
,(comment (G_ "\
;; This is the default list of services we ;; This is the default list of services we
;; are appending to.\n")) ;; are appending to.\n"))
,services)))))) ,services))))))