nixos-configs/configurations/nos/modules/docker/music/jbots/compose.nix
matt1432 8ba117e22b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: use overlays for my custom packages
2025-03-04 16:40:21 -05:00

37 lines
819 B
Nix

{configPath, ...}: {pkgs, ...}: let
inherit (pkgs.selfPackages) jmusicbot;
rwPath = configPath + "/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;
}