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 15:49:31 -04:00
|
|
|
khepri.compositions."jbots".services = {
|
2024-01-14 02:33:12 -05:00
|
|
|
"musicbot_be" = {
|
2024-07-24 15:49:31 -04:00
|
|
|
containerName = "be";
|
|
|
|
image = import ./images/jmusicbot.nix pkgs;
|
2024-01-14 02:33:12 -05:00
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
volumes = [
|
2024-03-17 13:17:43 -04:00
|
|
|
"${rwPath}/be/config.txt:/jmb/config/config.txt:ro"
|
|
|
|
"${rwPath}/be/playlists:/jmb/config/playlists:rw"
|
2024-01-14 02:33:12 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
"musicbot_br" = {
|
2024-07-24 15:49:31 -04:00
|
|
|
containerName = "br";
|
|
|
|
image = import ./images/jmusicbot.nix pkgs;
|
2024-01-14 02:33:12 -05:00
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
volumes = [
|
2024-03-17 13:17:43 -04:00
|
|
|
"${rwPath}/br/config.txt:/jmb/config/config.txt:ro"
|
|
|
|
"${rwPath}/br/playlists:/jmb/config/playlists:rw"
|
2024-01-14 02:33:12 -05:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|