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:
parent
f2239f3b95
commit
6b677f4299
1 changed files with 8 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue