update options to support new syntax

This commit is contained in:
2025-10-19 14:06:42 -05:00
parent 6ca265e97b
commit 14f790e67a
3 changed files with 105 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
sec = config.sops.secrets;
homelab = config.homelab;
in {
options.modules.services.${service} = {
options.homelab.${service} = {
enable = lib.mkEnableOption "enables ${service}";
# set port options
@@ -63,7 +63,8 @@ in {
relayHost = "smtp.gmail.com";
relayPort = cfg.port;
config = {
smtp_use_tls = "yes";
#smtp_use_tls = "yes";
smtp_tls_security_level = "may";
smtp_sasl_auth_enable = "yes";
smtp_sasl_security_options = "";
smtp_sasl_password_maps = "texthash:${config.sops.secrets."postfix_passwd".path}";