blob: 97203648ed7fffd949cc837c65b9bad0b0074b90 [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
Skyler Grey8720ed12024-03-10 13:59:44 +000010 pkgs.frappix.wiki
Skyler Greyfc048592024-03-10 13:46:17 +000011 ];
12
13 sites."frappe.clicks.codes" = {
14 domains = [
15 "frappe.clicks.codes"
16 ];
17
18 apps = [
19 "frappe"
Skyler Grey8720ed12024-03-10 13:59:44 +000020 "wiki"
Skyler Greyfc048592024-03-10 13:46:17 +000021 "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}