nixos/paperless: use python from pkg for gunicorn

This ensures that a compatible `gunicorn` is used when `pkg` is
overridden.
This commit is contained in:
Erik Arvstedt 2022-09-12 09:20:53 +02:00
parent 71bd9f638c
commit fdead18e9e
No known key found for this signature in database
GPG key ID: 33312B944DD97846

View file

@ -282,7 +282,7 @@ in
serviceConfig = defaultServiceConfig // {
User = cfg.user;
ExecStart = ''
${pkgs.python3Packages.gunicorn}/bin/gunicorn \
${pkg.python.pkgs.gunicorn}/bin/gunicorn \
-c ${pkg}/lib/paperless-ngx/gunicorn.conf.py paperless.asgi:application
'';
Restart = "on-failure";