depot/hosts/VEGAS/services/mail/opendkim.nix

16 lines
356 B
Nix
Raw Permalink Normal View History

2021-10-16 21:22:48 +03:00
{ lib, tools, ... }:
let
inherit (tools.meta) domain;
in
{
services.opendkim = {
enable = true;
selector = domain;
domains = domain;
};
# ensure socket becomes group-writable
systemd.services.opendkim.serviceConfig.UMask = lib.mkForce "0007";
# TODO: figure out which one works
users.users.postfix.extraGroups = [ "opendkim" ];
}