Add Dolibarr

This commit is contained in:
Paul-Henri Froidmont 2024-09-12 15:14:15 +02:00
parent 907575739c
commit d8b1d760df
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
5 changed files with 127 additions and 52 deletions

View file

@ -16,6 +16,11 @@
owner = config.services.borgbackup.jobs.data.user;
key = "borg/client_keys/backend1/private";
};
dolibarrDbPassword = {
owner = config.users.users.dolibarr.name;
key = "dolibarr/db_password";
restartUnits = [ "phpfpm-dolibarr.service" ];
};
};
custom = {
@ -124,6 +129,24 @@
};
};
services.dolibarr = {
enable = true;
domain = "dolibarr.froidmont.solutions";
stateDir = "/nix/var/data/dolibarr";
database = {
createLocally = false;
host = "10.0.1.11";
port = 5432;
name = "dolibarr";
user = "dolibarr";
passwordFile = config.sops.secrets.dolibarrDbPassword.path;
};
settings = {
dolibarr_main_db_type = lib.mkForce "pgsql";
};
nginx = { };
};
networking.firewall.allowedTCPPorts = [
80
443