I am currently packaging mediagoblin for NixOS and supplied the mediagoblin.ini config file via the MEDIAGOBLIN_CONFIG
env and changed DEFAULT.data_basedir
to /var/lib/mediagoblin/user_dev
. This was not propagated properly into all the settings with default in config_spec.ini and some paths like crypto_path still used the value from here instead of my configured one.
Thanks for your packaging efforts!
MEDIAGOBLIN_CONFIG
is only used by the Celery task queuing process, not by the MediaGoblin web application. Your options here are:a. Specify your config file in
paste.ini
and run the web application withpaster serve paste.ini
as per our traditional deployment approach (see https://docs.mediagoblin.org/en/master/siteadmin/deploying.html#run-mediagoblin-as-a-system-service). You'll still needMEDIAGOBLIN_CONFIG
for runningcelery worker
. Sorry for the inconsistency here.b. Use the new
gmg -cf CONF_FILE serve
andgmg -cf CONF_FILE celery
commands. These should be good to go, but we haven't switched our documentation over to use them yet, so haven't been as thoroughly tested.For what it's worth, it may be useful to check out my work-in-progress Guix package. The
inputs
section may be relevant to your work. I'm not using the project'smake
, but rather installing as a Python package: https://git.sr.ht/~mediagoblin/mediagoblin/tree/master/item/.guix/modules/mediagoblin-package.scm
Hi ~sandro, did I address your needs here regarding packaging MediaGoblin for NixOS? I'll mark this as resolved for now, but I'd love to hear if that worked for you.
I just ended up copying the config file to /var/lib/mediagoblin on each systemd service start. You can follow the packaging progress at https://github.com/NixOS/nixpkgs/pull/350578
On Mon, 28 Oct 2024 at 00:26, ~sturm outgoing@sr.ht wrote:
Ticket resolved: CLOSED
Hi ~sandro, did I address your needs here regarding packaging MediaGoblin for NixOS? I'll mark this as resolved for now, but I'd love to hear if that worked for you.
-- View on the web: https://todo.sr.ht/~mediagoblin/mediagoblin/57#event-392615