It appears I can get app passwords with kanidm and ldap so just going to a more stable, probably supported setup, should be good.
17 lines
398 B
Nix
17 lines
398 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.khscodes.infrastructure.mailserver;
|
|
in
|
|
{
|
|
config = lib.mkIf cfg.enable {
|
|
khscodes.infrastructure.provisioning.pre.modules = [
|
|
{
|
|
khscodes.cloudflare.dns.txtRecords = lib.lists.map (domain: {
|
|
fqdn = domain;
|
|
content = ''"v=spf1 mx ra=postmaster -all"'';
|
|
ttl = 600;
|
|
}) cfg.domains;
|
|
}
|
|
];
|
|
};
|
|
}
|