It is basically a PHP application that needs to be served with a webserver and PHP.
I want to be sure that my approach is correct.
First, I was planning on adding both a package (
pkgs/servers/dolibarr/default.nix) and a NixOS module (
nixos/modules/services/web-apps/dolibarr.nix) that would expose options
I am following the official instructions:
- Configure a database for dolibarr (I see how to do this, and what options to expose).
- Get the sources and decompress them.
- Create a
- Configure a webserver that should serve the dolibarr folder
- Configure a PHPfpm pool
My main concern is the following:
“Where” should live the “dolibarr” folder. As it is the “result” of the
fetchFromGitHub of the
dolibarr package, it would basically be in the
However, when it comes to configuring the service, it should be writeable by the web server.
At first, I thought about splitting it in an “immutable” part that would live in the
/nix/store and a “mutable” part that would live for instance in a configurable location (that could be
/var/lib/dolibarr by default).
This is what the
nextcloud service is doing.
The problem is that it is not really possible to split it like this.
I would be glad to have advice about how I should do this.