blob: 8479aff1a447d10b244cb94f6944daa89f748aff [file] [log] [blame]
Skyler Greyfc048592024-03-10 13:46:17 +00001{ pkgs, config, ... }: {
2 services.frappe = {
3 enable = true;
4 project = "frappe";
5
6 package = pkgs.frappix.frappe;
7
8 apps = [
9 pkgs.frappix.erpnext
10 ];
11
12 sites."frappe.clicks.codes" = {
13 domains = [
14 "frappe.clicks.codes"
15 ];
16
17 apps = [
18 "frappe"
19 "erpnext"
20 ];
21 };
22
23 adminPassword = config.sops.secrets."modules/common/frappe.nix:adminPassword".path;
24
25 gunicorn_workers = 9;
26 };
27
28 services.nginx.virtualHosts."frappe.clicks.codes" = {
29 enableACME = true;
30 };
31
32 sops.secrets."modules/common/frappe.nix:adminPassword" = {
33 mode = "0400";
34 owner = config.users.users.root.name;
35 group = config.users.users.root.group;
36 sopsFile = ../../secrets/frappe.json;
37 format = "json";
38 key = "adminPassword";
39 };
40}