nixos-configs/devices/nos/modules/docker/music/jbots/compose.nix

34 lines
724 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
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
];
};
};
}