]>
Commit | Line | Data |
---|---|---|
1 | { lib, env, binEnv }: | |
2 | { | |
3 | keys = lib.attrsets.mapAttrs' (k: v: | |
4 | lib.nameValuePair "webapps/webhooks/${k}.php" { | |
5 | user = "wwwrun"; | |
6 | group = "wwwrun"; | |
7 | permissions = "0400"; | |
8 | text = builtins.replaceStrings ["{{webhooks-bin-env}}"] [ "${binEnv}" ] v; | |
9 | }) env // lib.attrsets.mapAttrs' (k: v: | |
10 | lib.nameValuePair "webapps/webhooks/${k}/index.php" { | |
11 | user = "wwwrun"; | |
12 | group = "wwwrun"; | |
13 | permissions = "0400"; | |
14 | text = builtins.replaceStrings ["{{webhooks-bin-env}}"] [ "${binEnv}" ] v; | |
15 | }) env // { | |
16 | "webapps/webhooks" = { | |
17 | isDir = true; | |
18 | user = "wwwrun"; | |
19 | group = "wwwrun"; | |
20 | permissions = "0500"; | |
21 | }; | |
22 | }; | |
23 | } |