From fdead18e9e7c5f157c572858494b1c292430eede Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 12 Sep 2022 09:20:53 +0200 Subject: nixos/paperless: use python from pkg for gunicorn This ensures that a compatible `gunicorn` is used when `pkg` is overridden. --- nixos/modules/services/misc/paperless.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/services/misc/paperless.nix') diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index b3b1d265c19..e11158f8a12 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -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"; -- cgit 1.4.1