Merge pull request #209022 from mayflower/fix-mailman-hyperkitty-css

nixos/mailman: fix hyperkitty css/js when virtualRoot is `/`

authored by Robin Gloster and committed by GitHub 271c20dd 272763ef

+7 -3
+7 -3
nixos/modules/services/mail/mailman.nix
··· 570 570 type = "normal"; 571 571 plugins = ["python3"]; 572 572 home = webEnv; 573 - manage-script-name = true; 574 - mount = "${cfg.serve.virtualRoot}=mailman_web.wsgi:application"; 575 573 http = "127.0.0.1:18507"; 576 - }; 574 + } 575 + // (if cfg.serve.virtualRoot == "/" 576 + then { module = "mailman_web.wsgi:application"; } 577 + else { 578 + mount = "${cfg.serve.virtualRoot}=mailman_web.wsgi:application"; 579 + manage-script-name = true; 580 + }); 577 581 uwsgiConfigFile = pkgs.writeText "uwsgi-mailman.json" (builtins.toJSON uwsgiConfig); 578 582 in { 579 583 wantedBy = ["multi-user.target"];