TakeV <[email protected]> writes:

> [[PGP Signed Part:Undecided]]
> Hello there!
>
> I am attempting to create a service to run a package (specifically
> this https://github.com/superseriousbusiness/gotosocial) via shepherd.
> I have the config defined as specified in the complex configuration
> part of the manual, and I was wondering if there are any existing
> examples of serializing configurations to YAML? Right now I have
> everything passing directly into the command line, and being able to
> serialize to a config and pass that in would be much cleaner, I
> believe.
>
> Thanks!
>
> [2. OpenPGP public key --- application/pgp-keys; 
> OpenPGP_0x640A6795ECDAAC2F.asc]...
>
> [[End of PGP Signed Part]]

Grepping through the source code didn't reveal any meaningful references
to yaml.
There is an ad-hoc config generator in gnu/services/web.scm that
generates a tailon-config.yml, but at a quick glance it doesn't seem to
be a generic converter.  But maybe it's a good starting point?
I checked guile-libyaml but it is only a parser and doesn't support
serializing Scheme into YAML as far as I can tell.

Reply via email to