diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-01-10 13:41:28 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-01-30 23:14:45 +0000 |
commit | 0167eb303f23e0817602a1f80c2967c1487528c7 (patch) | |
tree | d14fb3130a167f5fb5e03deb50c4d2ca5fe765f0 /nixos/modules/services/mail | |
parent | 8f4fd4d9f538890b57efe60e0ed5f53d00a5d75f (diff) | |
download | nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar.gz nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar.bz2 nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar.lz nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar.xz nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.tar.zst nixpkgs-0167eb303f23e0817602a1f80c2967c1487528c7.zip |
nixos/mailman: make mailman package configurable
This will allow users to provide other archiver plugins than the default mailman-hyperkitty.
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r-- | nixos/modules/services/mail/mailman.nix | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index 547db8216ad..43dc185cdd7 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -80,6 +80,14 @@ in { description = "Enable Mailman on this host. Requires an active Postfix installation."; }; + package = mkOption { + type = types.package; + default = pkgs.mailman; + defaultText = "pkgs.mailman"; + example = "pkgs.mailman.override { archivers = []; }"; + description = "Mailman package to use"; + }; + siteOwner = mkOption { type = types.str; example = "postmaster@example.org"; @@ -212,8 +220,8 @@ in { restartTriggers = [ config.environment.etc."mailman.cfg".source ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { - ExecStart = "${pkgs.mailman}/bin/mailman start"; - ExecStop = "${pkgs.mailman}/bin/mailman stop"; + ExecStart = "${cfg.package}/bin/mailman start"; + ExecStop = "${cfg.package}/bin/mailman stop"; User = "mailman"; Type = "forking"; RuntimeDirectory = "mailman"; @@ -283,7 +291,7 @@ in { startAt = "daily"; restartTriggers = [ config.environment.etc."mailman.cfg".source ]; serviceConfig = { - ExecStart = "${pkgs.mailman}/bin/mailman digests --send"; + ExecStart = "${cfg.package}/bin/mailman digests --send"; User = "mailman"; }; }; |