nix/container/Redis.nix

16 lines
342 B
Nix
Raw Normal View History

2024-06-09 23:35:53 +03:00
{ container, pkgs, util, ... } @args: let
cfg = container.config.redis;
in {
containers.redis = container.mkContainer cfg {
config = { ... }: container.mkContainerConfig cfg {
services.redis.servers.main = {
enable = true;
port = cfg.port;
bind = cfg.address;
extraParams = [ "--protected-mode no" ];
};
};
};
}