blob: 8479aff1a447d10b244cb94f6944daa89f748aff [file] [log] [blame]
{ pkgs, config, ... }: {
services.frappe = {
enable = true;
project = "frappe";
package = pkgs.frappix.frappe;
apps = [
pkgs.frappix.erpnext
];
sites."frappe.clicks.codes" = {
domains = [
"frappe.clicks.codes"
];
apps = [
"frappe"
"erpnext"
];
};
adminPassword = config.sops.secrets."modules/common/frappe.nix:adminPassword".path;
gunicorn_workers = 9;
};
services.nginx.virtualHosts."frappe.clicks.codes" = {
enableACME = true;
};
sops.secrets."modules/common/frappe.nix:adminPassword" = {
mode = "0400";
owner = config.users.users.root.name;
group = config.users.users.root.group;
sopsFile = ../../secrets/frappe.json;
format = "json";
key = "adminPassword";
};
}