mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2025-10-14 01:14:35 +00:00
services: misskey: Use serializer from guile-yamlpp.
This commit is contained in:
parent
ae9586b909
commit
b8c3305403
@ -493,7 +493,7 @@ test its configuration file."))
|
|||||||
(string "misskey/misskey:latest")
|
(string "misskey/misskey:latest")
|
||||||
"Misskey docker image to use.")
|
"Misskey docker image to use.")
|
||||||
(config
|
(config
|
||||||
(yaml-config '())
|
yaml-config
|
||||||
"Alist of Misskey configuration, to be serialized to YAML format.")
|
"Alist of Misskey configuration, to be serialized to YAML format.")
|
||||||
(data-directory
|
(data-directory
|
||||||
(string "/var/lib/misskey")
|
(string "/var/lib/misskey")
|
||||||
@ -530,7 +530,15 @@ test its configuration file."))
|
|||||||
(match-record-lambda <misskey-configuration>
|
(match-record-lambda <misskey-configuration>
|
||||||
(image config data-directory log-file )
|
(image config data-directory log-file )
|
||||||
(let ((config-file
|
(let ((config-file
|
||||||
(mixed-text-file "misskey.yaml" (yaml-serialize config))))
|
(computed-file "misskey.yaml"
|
||||||
|
(with-extensions (list guile-yamlpp)
|
||||||
|
#~(begin
|
||||||
|
(use-modules (yamlpp))
|
||||||
|
(call-with-output-file #$output
|
||||||
|
(lambda (port)
|
||||||
|
(let ((emitter (make-yaml-emitter)))
|
||||||
|
(yaml-emit! emitter '#$config)
|
||||||
|
(display (yaml-emitter-string emitter) port)))))))))
|
||||||
(list (oci-container-configuration
|
(list (oci-container-configuration
|
||||||
(user "misskey")
|
(user "misskey")
|
||||||
(group "docker")
|
(group "docker")
|
||||||
@ -558,7 +566,6 @@ test its configuration file."))
|
|||||||
misskey-activation)
|
misskey-activation)
|
||||||
(service-extension oci-container-service-type
|
(service-extension oci-container-service-type
|
||||||
misskey-oci-containers)))
|
misskey-oci-containers)))
|
||||||
(default-value (misskey-configuration))
|
|
||||||
(description "Run Misskey, an interplanetary microblogging platform.")))
|
(description "Run Misskey, an interplanetary microblogging platform.")))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user