Skip to content

Commit

Permalink
nixos/nextcloud: move phpPackage and phpOptions into pool
Browse files Browse the repository at this point in the history
This allows to have a php configuration for nextcloud that is independent
of the global configuration.
  • Loading branch information
bachp committed Mar 1, 2019
1 parent 8f1b163 commit f0c0b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/web-apps/nextcloud.nix
Expand Up @@ -360,14 +360,14 @@ in {
};

services.phpfpm = {
phpOptions = phpOptionsExtensions;
phpPackage = pkgs.php73;
pools.nextcloud = let
phpAdminValues = (toKeyValue
(foldr (a: b: a // b) {}
(mapAttrsToList (k: v: { "php_admin_value[${k}]" = v; })
phpOptions)));
in {
phpOptions = phpOptionsExtensions;
phpPackage = pkgs.php73;
listen = "/run/phpfpm/nextcloud";
extraConfig = ''
listen.owner = nginx
Expand Down

0 comments on commit f0c0b8d

Please sign in to comment.