From 9b48143208b20fbe40d5555f642515763dbbbba9 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Sat, 18 May 2024 01:38:48 +0200 Subject: [PATCH] podman auto update --- modules/base/podman.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/base/podman.nix b/modules/base/podman.nix index 1193ae8..014a209 100644 --- a/modules/base/podman.nix +++ b/modules/base/podman.nix @@ -8,14 +8,21 @@ enable = true; # Automatically `podman system prune` weekly autoPrune.enable = true; - # Required for containers under podman-compose to be able to talk to each - # other. defaultNetwork.settings = { + # DNS is required for containers under podman-compose to be able to talk + # to each other. dns_enabled = true; ipv6_enabled = true; }; }; + # Auto-update containers + # https://docs.podman.io/en/latest/markdown/podman-auto-update.1.html + systemd = { + timers.podman-auto-update.enable = true; + units."podman-auto-update.timer".wantedBy = ["timers.target"]; + }; + # Persist docker volumes environment.persistence."/nix/persist" = { directories = [