depot/hosts/VEGAS/services/mail/opendkim.nix
2023-09-03 01:11:49 +02:00

15 lines
360 B
Nix

{ lib, depot, ... }:
let
inherit (depot.lib.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" ];
}