summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-10-11 20:04:37 +0000
committerAlyssa Ross <hi@alyssa.is>2023-10-11 20:20:12 +0000
commit21e3908ea35e5a98b0951a579f08b979d1909d9b (patch)
tree5348bd1cca6e0e265100d5ec7d012e330cd1c11b
parentec58ad152a8970c74822890d5dc13f11b2fde627 (diff)
downloadnixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar.gz
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar.bz2
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar.lz
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar.xz
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.tar.zst
nixpkgs-21e3908ea35e5a98b0951a579f08b979d1909d9b.zip
nixos/mailman: ensure uwsgi uses mailman's python
If they differ, uwsgi will fail to start, because it won't be able to
find the appropriate libraries.
-rw-r--r--nixos/modules/services/mail/mailman.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix
index ec2a19f58bb..17129b3aef4 100644
--- a/nixos/modules/services/mail/mailman.nix
+++ b/nixos/modules/services/mail/mailman.nix
@@ -592,7 +592,7 @@ in {
           # Since the mailman-web settings.py obstinately creates a logs
           # dir in the cwd, change to the (writable) runtime directory before
           # starting uwsgi.
-          ExecStart = "${pkgs.coreutils}/bin/env -C $RUNTIME_DIRECTORY ${pkgs.uwsgi.override { plugins = ["python3"]; }}/bin/uwsgi --json ${uwsgiConfigFile}";
+          ExecStart = "${pkgs.coreutils}/bin/env -C $RUNTIME_DIRECTORY ${pkgs.uwsgi.override { plugins = ["python3"]; python3 = webEnv.python; }}/bin/uwsgi --json ${uwsgiConfigFile}";
           User = cfg.webUser;
           Group = "mailman";
           RuntimeDirectory = "mailman-uwsgi";