config = mkIf cfg.enable {
- users.users = optionalAttrs (cfg.user == "opendmarc") (singleton
- { name = "opendmarc";
+ users.users = optionalAttrs (cfg.user == "opendmarc") {
+ opendmarc = {
group = cfg.group;
uid = config.ids.uids.opendmarc;
- });
+ };
+ };
- users.groups = optionalAttrs (cfg.group == "opendmarc") (singleton
- { name = "opendmarc";
+ users.groups = optionalAttrs (cfg.group == "opendmarc") {
+ opendmarc = {
gid = config.ids.gids.opendmarc;
- });
+ };
+ };
environment.systemPackages = [ pkgs.opendmarc ];