2023-07-17 20:40:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
2024-01-06 16:26:22 +00:00
|
|
|
flake,
|
2023-07-17 20:40:52 +00:00
|
|
|
...
|
|
|
|
}: {
|
|
|
|
age.secrets.erpnext-admin-password = {
|
2024-01-06 16:26:22 +00:00
|
|
|
file = "${flake.self}/secrets/erpnext-admin-password.age";
|
2023-07-17 20:40:52 +00:00
|
|
|
mode = "700";
|
|
|
|
owner = "erpnext";
|
|
|
|
};
|
|
|
|
age.secrets.erpnext-db-root-password = {
|
2024-01-06 16:26:22 +00:00
|
|
|
file = "${flake.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 = {
|
2024-01-06 16:26:22 +00:00
|
|
|
file = "${flake.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 = {};
|
|
|
|
};
|
|
|
|
}
|