made timezone a variable

This commit is contained in:
John Lancaster
2024-12-09 22:47:14 -06:00
parent cc6cb9ffcc
commit ae1275fc20

View File

@@ -1,9 +1,9 @@
{ ... }:
{ config, ... }:
{
virtualisation.oci-containers.containers.watchtower = {
image = "containrrr/watchtower:latest";
volumes = [
"/etc/zoneinfo/America/Chicago:/etc/localtime:ro"
"/etc/zoneinfo/${config.time.timeZone}:/etc/localtime:ro"
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {WATCHTOWER_SCHEDULE = "0 0 3 * * *";};