nix-config/containers/watchtower/default.nix

16 lines
371 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
{
virtualisation.oci-containers.containers.watchtower = {
image = "containrrr/watchtower:latest";
autoStart = true;
volumes = [
"/var/run/podman/podman.sock:/var/run/docker.sock:ro"
"/etc/localtime:/etc/localtime:ro"
];
environment = {
WATCHTOWER_CLEANUP = "true";
WATCHTOWER_SCHEDULE = "0 0 5 * * *";
};
};
}