diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-07-09 11:46:57 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-07-09 11:46:57 +0300 |
commit | c3ca2aa2029765cbee664ecc05254ad522a552fb (patch) | |
tree | 452951d32228bdda7a0f5a44689c7be44127edff | |
parent | e26d57c935eee4a900ca4c0aee032c2d05a02f1f (diff) | |
download | nixsap-c3ca2aa2029765cbee664ecc05254ad522a552fb.tar.gz |
memcached: use simple mapAttrs'
-rw-r--r-- | modules/apps/memcached/default.nix | 9 |
1 files changed, 5 insertions, 4 deletions
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; }; |