nixos-configs/configurations/nos/modules/docker/music/jbots/compose.nix
matt1432 42ca2912c7
All checks were successful
Discord / discord commits (push) Has been skipped
feat(docker): khepri -> nixos-docker-compose
2025-01-30 23:25:25 -05:00

41 lines
835 B
Nix

rwDataDir: {
pkgs,
self,
...
}: let
inherit (self.packages.${pkgs.system}) jmusicbot;
rwPath = rwDataDir + "/music/jbots";
image = pkgs.callPackage ./images/jmusicbot.nix {inherit pkgs jmusicbot;};
in {
virtualisation.docker.compose."jbots" = {
networks.proxy_net = {external = true;};
services = {
"musicbot_be" = {
container_name = "be";
restart = "always";
inherit image;
volumes = [
"${rwPath}/be:/jmb/config:rw"
];
networks = ["proxy_net"];
};
"musicbot_br" = {
container_name = "br";
restart = "always";
inherit image;
volumes = [
"${rwPath}/br:/jmb/config:rw"
];
networks = ["proxy_net"];
};
};
};
# For accurate stack trace
_file = ./compose.nix;
}