Add mountain-mesh-bot-discord

This commit is contained in:
Gene Liverman 2025-08-15 08:02:11 -04:00
parent cd4d9f0a9e
commit 5bb15f3119
Signed by: genebean
SSH key fingerprint: SHA256:gMnZbl3rg8nIXl4AomxNeNiOG4mWP/xEywbmQjVfhtY
3 changed files with 30 additions and 8 deletions

View file

@ -0,0 +1,25 @@
{ config, username, ... }: let
volume_base = "/orico/mountain-mesh-bot-discord";
in {
# My mountain-mesh-bot-discord container
virtualisation.oci-containers.containers = {
"mtnmesh_bot_discord" = {
autoStart = true;
image = "ghcr.io/genebean/mountain-mesh-bot-discord:main";
podman.user = username;
pull = "always";
volumes = [
"${volume_base}/.env:/src/.env"
];
};
};
services.restic.backups.daily.paths = [ volume_base ];
sops.secrets.mtnmesh_bot_dot_env = {
owner = "${username}";
path = "${volume_base}/.env";
restartUnits = [ "${config.virtualisation.oci-containers.containers.mtnmesh_bot_discord.serviceName}" ];
};
}