installer: Add comment above the 'packages' field.

* gnu/installer/services.scm (system-services->configuration): Add
heading above the 'packages' field.  Rename 'heading' to
'service-heading'.
This commit is contained in:
Ludovic Courtès 2022-11-20 22:56:23 +01:00
parent 82bde985f4
commit 8c7ea71344
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -159,25 +159,32 @@ (define (system-services->configuration services)
(base (if desktop?
'%desktop-services
'%base-services))
(heading (list (vertical-space 1)
(comment (G_ "\
(service-heading (list (vertical-space 1)
(comment (G_ "\
;; Below is the list of system services. To search for available
;; services, run 'guix system search KEYWORD' in a terminal.\n")))))
;; services, run 'guix system search KEYWORD' in a terminal.\n"))))
(package-heading (list (vertical-space 1)
(comment (G_ "\
;; Packages installed system-wide. Users can also install packages
;; under their own account: use 'guix search KEYWORD' to search
;; for packages and 'guix install PACKAGE' to install a package.\n")))))
(if (null? snippets)
`(,@(if (null? packages)
'()
`((packages (append (list ,@packages)
`(,@package-heading
(packages (append (list ,@packages)
%base-packages))))
,@heading
,@service-heading
(services ,base))
`(,@(if (null? packages)
'()
`((packages (append (list ,@packages)
`(,@package-heading
(packages (append (list ,@packages)
%base-packages))))
,@heading
,@service-heading
(services (append (list ,@snippets
,@(if desktop?