From 5a627ca0e334e76794be36e10cedf29e2e10aae0 Mon Sep 17 00:00:00 2001 From: Bill Ewanick Date: Thu, 25 Jan 2024 09:26:56 -0500 Subject: [PATCH] Setup ERP software --- nixos-apps/default.nix | 2 ++ nixos-apps/erp.fancyTypist.dev.nix | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 nixos-apps/erp.fancyTypist.dev.nix diff --git a/nixos-apps/default.nix b/nixos-apps/default.nix index 8c5e9e2..50c44ad 100644 --- a/nixos-apps/default.nix +++ b/nixos-apps/default.nix @@ -11,6 +11,8 @@ ./fancytypist.com.nix ./hydra.fancyTypist.com.nix + + ./erp.fancyTypist.dev.nix ]; # when in doubt, clear away the certs with diff --git a/nixos-apps/erp.fancyTypist.dev.nix b/nixos-apps/erp.fancyTypist.dev.nix new file mode 100644 index 0000000..9e0f56d --- /dev/null +++ b/nixos-apps/erp.fancyTypist.dev.nix @@ -0,0 +1,13 @@ +{ + services.dolibarr = { + enable = true; + domain = "erp.fancyTypist.dev"; + database.passwordFile = "/run/keys/dolibarr-db-ini-password"; + nginx = { + forceSSL = true; + enableACME = true; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 ]; +}