git.iko.soy/typeable/nixpkgs
on master help sign in
nextcloud: use same php package throughout!

`phpPackage` is 7.3 by default, but `pkgs.php` is 7.2, so this saves the need for an extra copy of php for the purpose of running nextcloud's cron; more importantly this fixes problems with extensions not loading since they are built against a different php.

commit27d78f4c6c094382d1807c06bf9c86a8bcb78052 authorWill Dietz <w@wdtz.org> dateSat 6 Apr 2019, 02:34 (8 years ago) parentc58c079
1 file changed+2−2
nixos/modules/services/web-apps/nextcloud.nix+2−2
nixos/modules/services/web-apps/nextcloud.nix+2−2
@@ -32,7 +32,7 @@ let
3232 cd ${pkgs.nextcloud}
3333 exec /run/wrappers/bin/sudo -u nextcloud \
3434 NEXTCLOUD_CONFIG_DIR="${cfg.home}/config" \
35− ${config.services.phpfpm.phpPackage}/bin/php \
35+ ${phpPackage}/bin/php \
3636 -c ${pkgs.writeText "php.ini" phpOptionsStr}\
3737 occ $*
3838 '';
@@ -360,7 +360,7 @@ in {
360360 environment.NEXTCLOUD_CONFIG_DIR = "${cfg.home}/config";
361361 serviceConfig.Type = "oneshot";
362362 serviceConfig.User = "nextcloud";
363− serviceConfig.ExecStart = "${pkgs.php}/bin/php -f ${pkgs.nextcloud}/cron.php";
363+ serviceConfig.ExecStart = "${phpPackage}/bin/php -f ${pkgs.nextcloud}/cron.php";
364364 };
365365 };
366366