os/hosts/pioneer-momo-koeln/erpnext.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
900 B
Nix
Raw Normal View History

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 20:58:15 +00:00
file = "${self}/secrets/erpnext-database-root-password.age";
2023-07-17 20:40:52 +00:00
mode = "700";
owner = "erpnext";
};
age.secrets.erpnext-db-user-password = {
2023-07-17 20:58:15 +00:00
file = "${self}/secrets/erpnext-database-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 = {};
};
}