feat: modified the flake to use the new api

Closes #5
This commit is contained in:
silver 2023-10-27 01:40:57 +01:00
parent 49363d02aa
commit 68c6894727

View file

@ -71,6 +71,7 @@
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
}); });
@ -113,6 +114,10 @@
type = types.str; type = types.str;
description = "ENV file with EMAIL_SMTP, EMAIL_USER, EMAIL_PASS"; description = "ENV file with EMAIL_SMTP, EMAIL_USER, EMAIL_PASS";
}; };
wolves = mkOption rec {
type = types.str;
description = "Mail details, has WOLVES_URL, WOLVES_KEY";
};
}; };
discord = { discord = {
@ -178,12 +183,14 @@
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
restartTriggers = [ restartTriggers = [
"${cfg.env.ldap}" "${cfg.env.ldap}"
"${cfg.env.discord}" "${cfg.env.discord}"
"${cfg.env.mail}" "${cfg.env.mail}"
"${cfg.env.wolves}"
]; ];
}; };
} // serviceGenerator scripts; } // serviceGenerator scripts;