blob: f6128f9adb1317b0ab913ec2e60042db8cc615a0 [file] [log] [blame]
{ pkgs, config, ... }: {
services.frappe = {
enable = true;
project = "frappe";
package = pkgs.frappix.frappe;
apps = [
pkgs.frappix.erpnext
pkgs.frappix.wiki
];
sites."frappe.clicks.codes" = {
domains = [
"frappe.clicks.codes"
];
apps = [
"frappe"
"wiki"
"erpnext"
];
};
sites."staging.frappe.clicks.codes" = {
domains = [
"staging.frappe.clicks.codes"
];
apps = [
"frappe"
"wiki"
"erpnext"
];
};
adminPassword = config.sops.secrets."modules/common/frappe.nix:adminPassword".path;
gunicorn_workers = 9;
};
services.nginx.virtualHosts."frappe.clicks.codes" = {
enableACME = true;
};
services.nginx.virtualHosts."staging.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";
};
}