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