2024-07-24 15:49:31 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.khepri) rwDataDir;
|
2024-01-22 15:50:05 -05:00
|
|
|
|
|
|
|
rwPath = rwDataDir + "/music/jbots";
|
|
|
|
in {
|
2024-07-24 20:52:32 -04:00
|
|
|
khepri.compositions."jbots" = {
|
|
|
|
networks.proxy_net = {external = true;};
|
2024-01-14 02:33:12 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
services = {
|
|
|
|
"musicbot_be" = {
|
|
|
|
containerName = "be";
|
|
|
|
image = import ./images/jmusicbot.nix pkgs;
|
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
volumes = [
|
2024-10-30 19:22:37 -04:00
|
|
|
"${rwPath}/be:/jmb/config:rw"
|
2024-07-24 20:52:32 -04:00
|
|
|
];
|
|
|
|
networks = ["proxy_net"];
|
|
|
|
};
|
2024-01-14 02:33:12 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
"musicbot_br" = {
|
|
|
|
containerName = "br";
|
|
|
|
image = import ./images/jmusicbot.nix pkgs;
|
|
|
|
restart = "always";
|
2024-01-14 02:33:12 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
volumes = [
|
2024-10-30 19:22:37 -04:00
|
|
|
"${rwPath}/br:/jmb/config:rw"
|
2024-07-24 20:52:32 -04:00
|
|
|
];
|
|
|
|
networks = ["proxy_net"];
|
|
|
|
};
|
2024-01-14 02:33:12 -05:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|