X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fchloe%2Fintegration.nix;h=d49a85c084cfc473528943630a3ae0f90602cae8;hb=f40f5b235b890f46770a22f005f8a0f664cf0562;hp=458e41450dc8fb990208ea4d46baf594be5a1233;hpb=f8026b6e4c869aa108f6361c8ccd50890657994d;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/chloe/integration.nix b/modules/private/websites/chloe/integration.nix index 458e414..d49a85c 100644 --- a/modules/private/websites/chloe/integration.nix +++ b/modules/private/websites/chloe/integration.nix @@ -13,11 +13,15 @@ in { config = lib.mkIf cfg.enable { secrets.keys = chloe.keys; - services.myPhpfpm.serviceDependencies.chloe_dev = chloe.phpFpm.serviceDeps; - services.myPhpfpm.poolConfigs.chloe_dev = chloe.phpFpm.pool; - services.myPhpfpm.poolPhpConfigs.chloe_dev = '' - extension=${pkgs.php}/lib/php/extensions/mysqli.so + systemd.services.phpfpm-chloe_dev.after = lib.mkAfter chloe.phpFpm.serviceDeps; + systemd.services.phpfpm-chloe_dev.wants = chloe.phpFpm.serviceDeps; + services.phpfpm.pools.chloe_dev = { + listen = chloe.phpFpm.socket; + extraConfig = chloe.phpFpm.pool; + phpOptions = config.services.phpfpm.phpOptions + '' + extension=${pkgs.php}/lib/php/extensions/mysqli.so ''; + }; system.activationScripts.chloe_dev = chloe.activationScript; system.extraSystemBuilderCmds = '' mkdir -p $out/webapps