mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
nixos/services.redis: complete removal of with lib;
This commit is contained in:
parent
2f3930f291
commit
c146818be2
1 changed files with 6 additions and 6 deletions
|
@ -275,7 +275,7 @@ in {
|
|||
'';
|
||||
};
|
||||
};
|
||||
config.settings = mkMerge [
|
||||
config.settings = lib.mkMerge [
|
||||
{
|
||||
inherit (config) port logfile databases maxclients appendOnly;
|
||||
daemonize = false;
|
||||
|
@ -293,14 +293,14 @@ in {
|
|||
slowlog-log-slower-than = config.slowLogLogSlowerThan;
|
||||
slowlog-max-len = config.slowLogMaxLen;
|
||||
}
|
||||
(mkIf (config.bind != null) { inherit (config) bind; })
|
||||
(mkIf (config.unixSocket != null) {
|
||||
(lib.mkIf (config.bind != null) { inherit (config) bind; })
|
||||
(lib.mkIf (config.unixSocket != null) {
|
||||
unixsocket = config.unixSocket;
|
||||
unixsocketperm = toString config.unixSocketPerm;
|
||||
})
|
||||
(mkIf (config.slaveOf != null) { slaveof = "${config.slaveOf.ip} ${toString config.slaveOf.port}"; })
|
||||
(mkIf (config.masterAuth != null) { masterauth = config.masterAuth; })
|
||||
(mkIf (config.requirePass != null) { requirepass = config.requirePass; })
|
||||
(lib.mkIf (config.slaveOf != null) { slaveof = "${config.slaveOf.ip} ${toString config.slaveOf.port}"; })
|
||||
(lib.mkIf (config.masterAuth != null) { masterauth = config.masterAuth; })
|
||||
(lib.mkIf (config.requirePass != null) { requirepass = config.requirePass; })
|
||||
];
|
||||
}));
|
||||
description = "Configuration of multiple `redis-server` instances.";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue