diff options
Diffstat (limited to 'modules/private/websites/tools/tools/webhooks.nix')
-rw-r--r-- | modules/private/websites/tools/tools/webhooks.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/modules/private/websites/tools/tools/webhooks.nix b/modules/private/websites/tools/tools/webhooks.nix index 8ffb81b..785e22b 100644 --- a/modules/private/websites/tools/tools/webhooks.nix +++ b/modules/private/websites/tools/tools/webhooks.nix | |||
@@ -1,16 +1,17 @@ | |||
1 | { lib, env }: | 1 | { lib, env }: |
2 | { | 2 | { |
3 | keys = lib.attrsets.mapAttrsToList (k: v: { | 3 | keys = lib.attrsets.mapAttrs' (k: v: |
4 | dest = "webapps/webhooks/${k}.php"; | 4 | lib.nameValuePair "webapps/webhooks/${k}.php" { |
5 | user = "wwwrun"; | 5 | user = "wwwrun"; |
6 | group = "wwwrun"; | 6 | group = "wwwrun"; |
7 | permissions = "0400"; | 7 | permissions = "0400"; |
8 | text = v; | 8 | text = v; |
9 | }) env ++ [{ | 9 | }) env // { |
10 | dest = "webapps/webhooks"; | 10 | "webapps/webhooks" = { |
11 | isDir = true; | 11 | isDir = true; |
12 | user = "wwwrun"; | 12 | user = "wwwrun"; |
13 | group = "wwwrun"; | 13 | group = "wwwrun"; |
14 | permissions = "0500"; | 14 | permissions = "0500"; |
15 | }]; | 15 | }; |
16 | }; | ||
16 | } | 17 | } |