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