aboutsummaryrefslogtreecommitdiff
path: root/modules/containers/watchtower/default.nix
blob: bc819cd0a96a0f1622206b973d81bef53c15f38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ ... }:
{
  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 * * *";
    };
  };
}