mirror of
https://codeberg.org/hako/Rosenthal.git
synced 2026-11-29 22:58:06 +00:00
utils: Add yaml-file.
* modules/rosenthal/utils/file.scm (yaml-file): New procedure. * modules/rosenthal/services/monitoring.scm (loki-shepherd, mimir-shepherd) (prometheus-shepherd) * modules/rosenthal/services/web.scm (misskey-oci): Use it. * modules/rosenthal/utils/serializers.scm * modules/rosenthal/utils/serializers/yaml.scm: Delete modules.
This commit is contained in:
5 files changed
+24
-232
No files matched your search
@@ -644,7 +644,7 @@ test its configuration file."))
|
||||
(string "misskey/misskey:latest")
|
||||
"Misskey docker image to use.")
|
||||
(config
|
||||
yaml-config
|
||||
gexp
|
||||
"Alist of Misskey configuration, to be serialized to YAML format.")
|
||||
(data-directory
|
||||
(string "/var/lib/misskey")
|
||||
@@ -692,16 +692,7 @@ test its configuration file."))
|
||||
(define misskey-oci
|
||||
(match-record-lambda <misskey-configuration>
|
||||
(image config data-directory log-file )
|
||||
(let ((config-file
|
||||
(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)))))))))
|
||||
(let ((config-file (yaml-file "misskey.yaml" config)))
|
||||
(oci-extension
|
||||
(containers
|
||||
(list (oci-container-configuration
|
||||
|
||||
Reference in new issue
Block a user