nixos/limesurvey: use php83

This is what the version we currently have is packaged against[1]. No
actual maintenance is done, this package will need a new person feeling
responsible for this.

[1] https://github.com/LimeSurvey/LimeSurvey/blob/6.10.2%2B250127/.github/workflows/main.yml#L20
This commit is contained in:
Maximilian Bosch
2025-10-03 23:29:49 +02:00
parent 2cb89c0aef
commit b95a14f2ee

View File

@@ -327,7 +327,7 @@ in
services.phpfpm.pools.limesurvey = {
inherit user group;
phpPackage = pkgs.php81;
phpPackage = pkgs.php83;
phpEnv.DBENGINE = "${cfg.database.dbEngine}";
phpEnv.LIMESURVEY_CONFIG = "${limesurveyConfig}";
# App code cannot access credentials directly since the service starts
@@ -419,8 +419,8 @@ in
environment.LIMESURVEY_CONFIG = limesurveyConfig;
script = ''
# update or install the database as required
${pkgs.php81}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php updatedb || \
${pkgs.php81}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php install admin password admin admin@example.com verbose
${pkgs.php83}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php updatedb || \
${pkgs.php83}/bin/php ${cfg.package}/share/limesurvey/application/commands/console.php install admin password admin admin@example.com verbose
'';
serviceConfig = {
User = user;