nixos-configs/devices/servivi/modules/arion/music/jbots/compose.nix
matt1432 2b14ecc1b8
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(arion): setup options instead of importing attrsets
2024-01-22 15:50:05 -05:00

29 lines
650 B
Nix

{config, ...}: let
inherit (config.arion) rwDataDir;
rwPath = rwDataDir + "/music/jbots";
in {
arion.projects."jbots" = {
"musicbot_be" = {
container_name = "benis";
image = ./images/jmusicbot.nix;
restart = "always";
volumes = [
"${rwPath}/be/config.txt:/app/config.txt:ro"
"${rwPath}/be/playlists:/app/playlists:rw"
];
};
"musicbot_br" = {
container_name = "bruh";
image = ./images/jmusicbot.nix;
restart = "always";
volumes = [
"${rwPath}/br/config.txt:/app/config.txt:ro"
"${rwPath}/br/playlists:/app/playlists:rw"
];
};
};
}