Fixed: now using the configured redis package.

This commit is contained in:
Zef Hemel 2013-06-07 11:37:58 +02:00
parent 6b4d76c2c2
commit bcf3a7bbf6

View File

@ -312,7 +312,7 @@ in
description = "Redis database user"; description = "Redis database user";
}; };
environment.systemPackages = [ pkgs.redis ]; environment.systemPackages = [ cfg.package ];
systemd.services.redis_init = systemd.services.redis_init =
{ description = "Redis server initialisation"; { description = "Redis server initialisation";
@ -336,7 +336,7 @@ in
after = [ "network.target" ]; after = [ "network.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.redis}/bin/redis-server ${redisConfig}"; ExecStart = "${cfg.package}/bin/redis-server ${redisConfig}";
User = cfg.user; User = cfg.user;
}; };
}; };