mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
Fixed: now using the configured redis package.
This commit is contained in:
parent
6b4d76c2c2
commit
bcf3a7bbf6
@ -312,7 +312,7 @@ in
|
||||
description = "Redis database user";
|
||||
};
|
||||
|
||||
environment.systemPackages = [ pkgs.redis ];
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
systemd.services.redis_init =
|
||||
{ description = "Redis server initialisation";
|
||||
@ -336,7 +336,7 @@ in
|
||||
after = [ "network.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
ExecStart = "${pkgs.redis}/bin/redis-server ${redisConfig}";
|
||||
ExecStart = "${cfg.package}/bin/redis-server ${redisConfig}";
|
||||
User = cfg.user;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user