diff options
author | Linus Heckemann <git@sphalerite.org> | 2020-05-22 14:12:43 +0200 |
---|---|---|
committer | Linus Heckemann <git@sphalerite.org> | 2020-06-18 17:23:33 +0200 |
commit | 176bc68a699ad62156c6d727babe07fe0fe1294d (patch) | |
tree | dc443ca9cba326e2c0d12cad4cbda7ba23ed561e /nixos | |
parent | 3dbbc786f51eb3f74fc75b1d179b3c447e315ecc (diff) |
mailman: log to journal
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/mailman.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/mailman.nix b/nixos/modules/services/mail/mailman.nix index a604f32b33716..3744214ca49fd 100644 --- a/nixos/modules/services/mail/mailman.nix +++ b/nixos/modules/services/mail/mailman.nix @@ -185,7 +185,11 @@ in { enable = "yes"; configuration = "/var/lib/mailman/mailman-hyperkitty.cfg"; }; - }; + } // (let + loggerNames = ["root" "archiver" "bounce" "config" "database" "debug" "error" "fromusenet" "http" "locks" "mischief" "plugins" "runner" "smtp"]; + loggerSectionNames = map (n: "logging.${n}") loggerNames; + in lib.genAttrs loggerSectionNames(name: { handler = "stderr"; }) + ); assertions = let inherit (config.services) postfix; |