nixos-configs/devices/nos/modules/docker/music/jbots/compose.nix
matt1432 015e9aa022
All checks were successful
Discord / discord commits (push) Successful in 56s
fix(servers): use burner google account for music bots
2024-10-30 19:22:37 -04:00

37 lines
725 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/music/jbots";
in {
khepri.compositions."jbots" = {
networks.proxy_net = {external = true;};
services = {
"musicbot_be" = {
containerName = "be";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
volumes = [
"${rwPath}/be:/jmb/config:rw"
];
networks = ["proxy_net"];
};
"musicbot_br" = {
containerName = "br";
image = import ./images/jmusicbot.nix pkgs;
restart = "always";
volumes = [
"${rwPath}/br:/jmb/config:rw"
];
networks = ["proxy_net"];
};
};
};
}