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 | |
Skyler Grey | 9781aec | 2024-04-18 10:38:49 +0000 | [diff] [blame] | 25 | sites."staging.frappe.clicks.codes" = { |
| 26 | domains = [ |
| 27 | "staging.frappe.clicks.codes" |
| 28 | ]; |
| 29 | |
| 30 | apps = [ |
| 31 | "frappe" |
| 32 | "wiki" |
| 33 | "erpnext" |
| 34 | ]; |
| 35 | }; |
| 36 | |
Skyler Grey | fc04859 | 2024-03-10 13:46:17 +0000 | [diff] [blame] | 37 | adminPassword = config.sops.secrets."modules/common/frappe.nix:adminPassword".path; |
| 38 | |
| 39 | gunicorn_workers = 9; |
| 40 | }; |
| 41 | |
| 42 | services.nginx.virtualHosts."frappe.clicks.codes" = { |
| 43 | enableACME = true; |
| 44 | }; |
| 45 | |
Skyler Grey | 9781aec | 2024-04-18 10:38:49 +0000 | [diff] [blame] | 46 | services.nginx.virtualHosts."staging.frappe.clicks.codes" = { |
| 47 | enableACME = true; |
| 48 | }; |
| 49 | |
Skyler Grey | fc04859 | 2024-03-10 13:46:17 +0000 | [diff] [blame] | 50 | sops.secrets."modules/common/frappe.nix:adminPassword" = { |
| 51 | mode = "0400"; |
| 52 | owner = config.users.users.root.name; |
| 53 | group = config.users.users.root.group; |
| 54 | sopsFile = ../../secrets/frappe.json; |
| 55 | format = "json"; |
| 56 | key = "adminPassword"; |
| 57 | }; |
| 58 | } |