aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/apps/memcached/default.nix9
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;
};