diff options
author | Peter Simons <simons@cryp.to> | 2019-09-11 14:48:51 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2019-09-11 14:48:51 +0200 |
commit | 86f8895abbfdb3ce118e0ca971f56c7f72871e29 (patch) | |
tree | 089ec6284d12284781593fce0ea7b1a30b06d749 /nixos/modules/services/mail/mailman.nix | |
parent | 72c7ba5aba1d8dde9da8f4e7b5805edb30cbad7b (diff) | |
download | nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar.gz nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar.bz2 nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar.lz nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar.xz nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.tar.zst nixpkgs-86f8895abbfdb3ce118e0ca971f56c7f72871e29.zip |
python-mailman-web: turn these Djando configuration files into a make-shift Python library
Suggested in https://github.com/NixOS/nixpkgs/pull/67951#issuecomment-530309702.
Diffstat (limited to 'nixos/modules/services/mail/mailman.nix')
-rw-r--r-- | nixos/modules/services/mail/mailman.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 93f4d889955..a3c007a55c9 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -62,6 +62,12 @@ let installPhase = "install -D ${djangoPyEnv}/bin/django-admin $out/bin/mailman-django-admin"; }; + mailmanWeb = pkgs.python3Packages.mailman-web.override { + serverEMail = cfg.siteOwner; + archiverKey = cfg.hyperkittyApiKey; + allowedHosts = cfg.webHosts; + }; + in { ###### interface @@ -88,10 +94,7 @@ in { webRoot = mkOption { type = types.path; - default = pkgs.python3Packages.mailman-web.override { serverEMail = cfg.siteOwner; - archiverKey = cfg.hyperkittyApiKey; - allowedHosts = cfg.webHosts; - }; + default = "${mailmanWeb}/${pkgs.python3.sitePackages}"; defaultText = "pkgs.python3Packages.mailman-web"; description = '' The web root for the Hyperkity + Postorius apps provided by Mailman. |