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

41 lines
794 B
Nix
Raw Permalink Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
2025-01-25 11:41:14 -05:00
self,
2024-07-24 15:49:31 -04:00
...
}: let
2025-01-25 11:41:14 -05:00
inherit (self.packages.${pkgs.system}) jmusicbot;
2024-07-24 15:49:31 -04:00
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/music/jbots";
2025-01-25 11:41:14 -05:00
image = import ./images/jmusicbot.nix {inherit pkgs jmusicbot;};
in {
khepri.compositions."jbots" = {
networks.proxy_net = {external = true;};
2024-01-14 02:33:12 -05:00
services = {
"musicbot_be" = {
containerName = "be";
restart = "always";
2025-01-25 11:41:14 -05:00
inherit image;
volumes = [
"${rwPath}/be:/jmb/config:rw"
];
networks = ["proxy_net"];
};
2024-01-14 02:33:12 -05:00
"musicbot_br" = {
containerName = "br";
restart = "always";
2025-01-25 11:41:14 -05:00
inherit image;
2024-01-14 02:33:12 -05:00
volumes = [
"${rwPath}/br:/jmb/config:rw"
];
networks = ["proxy_net"];
};
2024-01-14 02:33:12 -05:00
};
};
}