Browse Source

services: profile: Use a declarative profile.

* gnu/services.scm (packages->profile-entry): Use 'profile' instead of
'profile-derivation'.
gn-latest-20200428
Ludovic Courtès 2 years ago
parent
commit
45bd91334f
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 8
      gnu/services.scm

8
gnu/services.scm

@ -691,10 +691,10 @@ executables, making them setuid-root.")))
(define (packages->profile-entry packages)
"Return a system entry for the profile containing PACKAGES."
(mlet %store-monad ((profile (profile-derivation
(packages->manifest
(delete-duplicates packages eq?)))))
(return `(("profile" ,profile)))))
(with-monad %store-monad
(return `(("profile" ,(profile
(content (packages->manifest
(delete-duplicates packages eq?)))))))))
(define profile-service-type
;; The service that populates the system's profile---i.e.,

Loading…
Cancel
Save