diff --git a/modules/podman.nix b/modules/podman.nix index 3bd6131..2b2885d 100644 --- a/modules/podman.nix +++ b/modules/podman.nix @@ -33,6 +33,10 @@ # Prune volumes currently unused by any container # https://docs.podman.io/en/stable/markdown/podman-system-prune.1.html#volumes "--volumes" + # Only remove containers and images created at least one week ago. + # https://docs.podman.io/en/stable/markdown/podman-system-prune.1.html#filter-filters + # https://pkg.go.dev/maze.io/x/duration#ParseDuration + "--filter until=7d" ]; }; };