Fix MtnMeshBot: run as root, use tag, update .env

Prior to this, I had tried to run as my user but that doesn't work here.
It seems you have to use the version of running containers built into
home-manager if you want rootless podman.
This commit is contained in:
Gene Liverman 2025-08-17 15:05:16 -04:00
parent d879524801
commit 4354e75f83
Signed by: genebean
SSH key fingerprint: SHA256:gMnZbl3rg8nIXl4AomxNeNiOG4mWP/xEywbmQjVfhtY
3 changed files with 5 additions and 7 deletions

View file

@ -6,9 +6,7 @@ in {
virtualisation.oci-containers.containers = {
"mtnmesh_bot_discord" = {
autoStart = true;
image = "ghcr.io/genebean/mountain-mesh-bot-discord:main";
podman.user = username;
pull = "always";
image = "ghcr.io/genebean/mountain-mesh-bot-discord:v1.0.0";
volumes = [
"${volume_base}/.env:/src/.env"
];
@ -18,7 +16,6 @@ in {
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}" ];
};