3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

services: ipfs: Adjust for Shepherd 0.9.

This is a followup to e1f0c88ea2.

* gnu/services/networking.scm (%ipfs-activation)[shepherd&co]: New
variable.
[container-gexp]: Use it.
This commit is contained in:
Ludovic Courtès 2022-04-16 22:27:13 +02:00
parent f2239f3b95
commit 6b677f4299
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -2074,12 +2074,19 @@ See yggdrasil -genconf for config options.")
#$@(map (cute apply set-config!-gexp <>) settings)))
(define inner-script
(program-file "ipfs-activation-inner" inner-gexp))
(define shepherd&co
;; 'make-forkexec-constructor/container' needs version 0.9 for
;; #:supplementary-groups.
(cons shepherd-0.9
(list (lookup-package-input shepherd-0.9 "guile-fibers"))))
;; Run ipfs init and ipfs config from a container,
;; in case the IPFS daemon was compromised at some point
;; and ~/.ipfs is now a symlink to somewhere outside
;; %ipfs-home.
(define container-gexp
(with-extensions (list shepherd)
(with-extensions shepherd&co
(with-imported-modules (source-module-closure
'((gnu build shepherd)
(gnu system file-systems)))