mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Refactor boot-service-type and activation-service-type.
* gnu/services.scm (boot-service-type) <compose>: Use the "identity" procedure instead of the "append" procedure because it more accurately reflects the intent, which is to simply return the single list of extensions to which fold-services applies the "compose" procedure. (activation-service-type) <compose>: Likewise.
This commit is contained in:
parent
881c61d062
commit
7874e9e047
1 changed files with 2 additions and 2 deletions
|
@ -352,7 +352,7 @@ (define boot-service-type
|
|||
(extensions
|
||||
(list (service-extension system-service-type
|
||||
boot-script-entry)))
|
||||
(compose append)
|
||||
(compose identity)
|
||||
(extend compute-boot-script)))
|
||||
|
||||
(define %boot-service
|
||||
|
@ -457,7 +457,7 @@ (define activation-service-type
|
|||
(extensions
|
||||
(list (service-extension boot-service-type
|
||||
gexps->activation-gexp)))
|
||||
(compose append)
|
||||
(compose identity)
|
||||
(extend second-argument)))
|
||||
|
||||
(define %activation-service
|
||||
|
|
Loading…
Reference in a new issue