2024-04-03 17:54:07 +02:00
|
|
|
{ config, pkgs, lib, materusArg, ... }:
|
|
|
|
{
|
|
|
|
options.valkyrieService.dcbot.enable = materusArg.pkgs.lib.mkBoolOpt false "Enable dcbot";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config =
|
|
|
|
let
|
|
|
|
cfg = config.valkyrieService.dcbot;
|
|
|
|
in
|
|
|
|
lib.mkIf cfg.enable {
|
|
|
|
sops.templates."dcbot.env".content = ''
|
|
|
|
TOKEN=${config.sops.placeholder.discord-token}
|
2024-04-05 21:57:02 +02:00
|
|
|
MAX_PLAYLIST_SIZE=100
|
2024-04-03 17:54:07 +02:00
|
|
|
PRUNING=false
|
|
|
|
LOCALE=pl
|
|
|
|
DEFAULT_VOLUME=100
|
|
|
|
STAY_TIME=30
|
|
|
|
'';
|
|
|
|
|
|
|
|
systemd.tmpfiles.rules = [
|
|
|
|
"d /var/lib/muse 0776 root root -"
|
|
|
|
];
|
|
|
|
|
2024-04-03 18:02:23 +02:00
|
|
|
virtualisation.oci-containers.containers.dcbot = {
|
2024-04-03 17:54:07 +02:00
|
|
|
image = "eritislami/evobot:latest";
|
|
|
|
volumes = [
|
|
|
|
];
|
|
|
|
environmentFiles = [
|
|
|
|
config.sops.templates."dcbot.env".path
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}
|