From c146818be28beefc38467ca927428b88b6eb31e4 Mon Sep 17 00:00:00 2001 From: Andrew Frahn Date: Tue, 10 Dec 2024 12:39:02 +1100 Subject: [PATCH] nixos/services.redis: complete removal of with lib; --- nixos/modules/services/databases/redis.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nixos/modules/services/databases/redis.nix b/nixos/modules/services/databases/redis.nix index 49990dd736c7a..31532646f8edc 100644 --- a/nixos/modules/services/databases/redis.nix +++ b/nixos/modules/services/databases/redis.nix @@ -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.";