about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2023-11-30 11:51:37 +0100
committerJanne Heß <janne@hess.ooo>2023-11-30 11:51:37 +0100
commit018175ecab4555d7042f8d743445c797f4a27d07 (patch)
treeafd33b40b87fccd60ec7f6c905499c401ca89109 /nixos
parent0d44b5b7733e35fe17b34921c611c21f805068a9 (diff)
downloadnixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar.gz
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar.bz2
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar.lz
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar.xz
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.tar.zst
nixlib-018175ecab4555d7042f8d743445c797f4a27d07.zip
netbox: Inherit gunicorn from the package
I was using a 23.11 package on a NixOS 23.05 system and this caused the
python that was used in gunicorn to differ from the python the postgres
lib was linked against.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/netbox.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/web-apps/netbox.nix b/nixos/modules/services/web-apps/netbox.nix
index 3b9434e3d345..88d40b3abc52 100644
--- a/nixos/modules/services/web-apps/netbox.nix
+++ b/nixos/modules/services/web-apps/netbox.nix
@@ -317,7 +317,7 @@ in {
 
         serviceConfig = defaultServiceConfig // {
           ExecStart = ''
-            ${pkgs.python3Packages.gunicorn}/bin/gunicorn netbox.wsgi \
+            ${pkg.gunicorn}/bin/gunicorn netbox.wsgi \
               --bind ${cfg.listenAddress}:${toString cfg.port} \
               --pythonpath ${pkg}/opt/netbox/netbox
           '';