feat: email details will be passed in as an env file

This commit is contained in:
silver 2023-09-10 22:33:00 +01:00
parent e6f3b5f158
commit c3161315fe

View file

@ -66,6 +66,10 @@
type = types.str; type = types.str;
description = "ENV file with DISCORD_TOKEN"; description = "ENV file with DISCORD_TOKEN";
}; };
mail = mkOption rec {
type = types.str;
description = "ENV file with EMAIL_SMTP, EMAIL_USER, EMAIL_PASS";
};
}; };
discord = { discord = {
@ -123,6 +127,7 @@
EnvironmentFile = [ EnvironmentFile = [
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}"
]; ];
}; };
}; };