X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Ftools%2Ftools%2Fwebhooks.nix;h=d21e73376a08a47faafa3060bdfcf8aec0edb4ad;hb=de5b6cf13efac442885f6b20caffeb67f9920115;hp=c24c09c63b0938916efcafaa2ec6ec58a4e4c0e0;hpb=15ff4cb4e7357babda8e2cb1f7d33bd17d079a7c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/modules/private/websites/tools/tools/webhooks.nix b/modules/private/websites/tools/tools/webhooks.nix index c24c09c..d21e733 100644 --- a/modules/private/websites/tools/tools/webhooks.nix +++ b/modules/private/websites/tools/tools/webhooks.nix @@ -1,17 +1,17 @@ -{ lib, env }: +{ lib, env, binEnv }: { keys = lib.attrsets.mapAttrs' (k: v: lib.nameValuePair "webapps/webhooks/${k}.php" { user = "wwwrun"; group = "wwwrun"; permissions = "0400"; - text = v; + text = builtins.replaceStrings ["{{webhooks-bin-env}}"] [ "${binEnv}" ] v; }) env // lib.attrsets.mapAttrs' (k: v: lib.nameValuePair "webapps/webhooks/${k}/index.php" { user = "wwwrun"; group = "wwwrun"; permissions = "0400"; - text = v; + text = builtins.replaceStrings ["{{webhooks-bin-env}}"] [ "${binEnv}" ] v; }) env // { "webapps/webhooks" = { isDir = true;