From c3ca2aa2029765cbee664ecc05254ad522a552fb Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Sun, 9 Jul 2017 11:46:57 +0300 Subject: memcached: use simple mapAttrs' --- modules/apps/memcached/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'modules/apps') diff --git a/modules/apps/memcached/default.nix b/modules/apps/memcached/default.nix index af418e9..5e6b64c 100644 --- a/modules/apps/memcached/default.nix +++ b/modules/apps/memcached/default.nix @@ -6,8 +6,8 @@ let elem filter isBool isList ; inherit (lib) - concatMapStringsSep concatStringsSep filterAttrs flatten foldAttrs foldl - mapAttrsToList mkOption optionalString ; + concatMapStringsSep concatStringsSep filterAttrs flatten + foldAttrs mapAttrs' mapAttrsToList mkOption optionalString ; inherit (lib.types) attrsOf submodule ; @@ -38,7 +38,8 @@ let ''; in { - "memcached-${name}" = { + name = "memcached-${name}"; + value = { description = "memcached (${name})"; wantedBy = [ "multi-user.target" ]; after = [ "keys.target" "network.target" "local-fs.target" ]; @@ -59,7 +60,7 @@ in { }; config = { - systemd.services = foldl (a: b: a//b) {} (mapAttrsToList mkService instances); + systemd.services = mapAttrs' mkService instances; nixsap.system.users.daemons = users; }; -- cgit v1.2.3