aboutsummaryrefslogtreecommitdiff
path: root/modules/apps
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-02-01 21:41:26 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-02-01 21:58:45 +0300
commitc4bd79eaab73cde521dad2d7e6b25c0b94391a58 (patch)
treef18b1f68cfed74abb19e099fdb317f379639dca7 /modules/apps
parent27a77fc3b80accccb0e1285b51fd117794f6a3f5 (diff)
downloadnixsap-c4bd79eaab73cde521dad2d7e6b25c0b94391a58.tar.gz
php-fpm: use simple mapAttrs'
Instead of folding, since we produce single member attribute set.
Diffstat (limited to 'modules/apps')
-rw-r--r--modules/apps/php-fpm.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/apps/php-fpm.nix b/modules/apps/php-fpm.nix
index cdc83c6..8501208 100644
--- a/modules/apps/php-fpm.nix
+++ b/modules/apps/php-fpm.nix
@@ -6,7 +6,7 @@ let
filter isAttrs isBool ;
inherit (lib)
- concatStringsSep filterAttrs foldl hasPrefix mapAttrs' mapAttrsToList
+ concatStringsSep filterAttrs hasPrefix mapAttrs' mapAttrsToList
mkDefault mkIf mkOption ;
inherit (lib.types)
@@ -82,7 +82,8 @@ let
then "--php-ini ${cfg.php-ini}"
else "--no-php-ini" );
in {
- "php-fpm-${name}" = {
+ name = "php-fpm-${name}";
+ value = {
description = "PHP FastCGI Process Manager (${name})";
after = [ "local-fs.target" ];
wantedBy = [ "multi-user.target" ];
@@ -187,7 +188,7 @@ in {
config = mkIf ({} != instances) {
nixsap.apps.logrotate.conf = mapAttrs' mkLogRotate instances;
nixsap.system.users.daemons = users;
- systemd.services = foldl (a: b: a//b) {} (mapAttrsToList mkService instances);
+ systemd.services = mapAttrs' mkService instances;
};
}