2023-07-17 20:40:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
self,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
age.secrets.erpnext-admin-password = {
|
2023-07-17 20:58:15 +00:00
|
|
|
file = "${self}/secrets/erpnext-admin-password.age";
|
2023-07-17 20:40:52 +00:00
|
|
|
mode = "700";
|
|
|
|
owner = "erpnext";
|
|
|
|
};
|
|
|
|
age.secrets.erpnext-db-root-password = {
|
2023-07-17 21:06:14 +00:00
|
|
|
file = "${self}/secrets/erpnext-db-root-password.age";
|
2023-07-17 20:40:52 +00:00
|
|
|
mode = "700";
|
|
|
|
owner = "erpnext";
|
|
|
|
};
|
|
|
|
age.secrets.erpnext-db-user-password = {
|
2023-07-17 21:06:14 +00:00
|
|
|
file = "${self}/secrets/erpnext-db-user-password.age";
|
2023-07-17 20:40:52 +00:00
|
|
|
mode = "700";
|
|
|
|
owner = "erpnext";
|
|
|
|
};
|
|
|
|
|
|
|
|
# erpnext
|
|
|
|
services.erpnext = {
|
|
|
|
enable = true;
|
|
|
|
domain = "erp.momo.koeln";
|
|
|
|
|
|
|
|
# Secrets
|
|
|
|
adminPasswordFile = config.age.secrets.erpnext-admin-password.path;
|
|
|
|
database.rootPasswordFile = config.age.secrets.erpnext-db-root-password.path;
|
|
|
|
database.userPasswordFile = config.age.secrets.erpnext-db-user-password.path;
|
|
|
|
|
|
|
|
# Required to enable caddy
|
|
|
|
caddy = {};
|
|
|
|
};
|
|
|
|
}
|