|
30 | 30 | mkConfigFile = |
31 | 31 | filename: settings: |
32 | 32 | let |
33 | | - # hack in special logic for secrets so we read them from a separate file avoiding the nix store |
| 33 | + # hack in special logic for secrets so we read them from a separate file avoiding the Nix store |
34 | 34 | secretKeys = [ |
35 | 35 | "force_install_databasepass" |
36 | 36 | "dolibarr_main_db_pass" |
|
313 | 313 | inherit (cfg) user group; |
314 | 314 | phpPackage = pkgs.php83.buildEnv { |
315 | 315 | extensions = { enabled, all }: enabled ++ [ all.calendar ]; |
316 | | - # recommended by dolibarr web application |
| 316 | + # recommended by Dolibarr web application |
317 | 317 | extraConfig = '' |
318 | 318 | session.use_strict_mode = 1 |
319 | 319 | session.cookie_samesite = "Lax" |
|
331 | 331 | // cfg.poolConfig; |
332 | 332 | }; |
333 | 333 |
|
334 | | - # there are several challenges with dolibarr and NixOS which we can address here |
335 | | - # - the dolibarr installer cannot be entirely automated, though it can partially be by including a file called install.forced.php |
336 | | - # - the dolibarr installer requires write access to its config file during installation, though not afterwards |
337 | | - # - the dolibarr config file generally holds secrets generated by the installer, though the config file is a php file so we can read and write these secrets from an external file |
| 334 | + # There are several challenges with Dolibarr and NixOS which we can address here |
| 335 | + # - the Dolibarr installer cannot be entirely automated, though it can partially be by including a file called install.forced.php |
| 336 | + # - the Dolibarr installer requires write access to its config file during installation, though not afterwards |
| 337 | + # - the Dolibarr config file generally holds secrets generated by the installer, though the config file is a PHP file so we can read and write these secrets from an external file |
338 | 338 | systemd.services.dolibarr-config = { |
339 | 339 | description = "dolibarr configuration file management via NixOS"; |
340 | 340 | wantedBy = [ "multi-user.target" ]; |
|
0 commit comments