mirror of
https://github.com/genebean/dots.git
synced 2026-03-28 09:57:43 -04:00
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:
parent
d879524801
commit
4354e75f83
3 changed files with 5 additions and 7 deletions
|
|
@ -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}" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue