From d19269b3d5be9f184b2b7443716541f49ba89b1b Mon Sep 17 00:00:00 2001 From: James Walker Date: Wed, 22 Sep 2021 17:37:06 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=82=EF=B8=8F=20auto=20prune=20stale=20doc?= =?UTF-8?q?ker=20images?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/plato/configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/plato/configuration.nix b/hosts/plato/configuration.nix index 8cb6613..3b541b5 100644 --- a/hosts/plato/configuration.nix +++ b/hosts/plato/configuration.nix @@ -74,7 +74,14 @@ in { services.tailscale.enable = true; services.keybase.enable = true; - virtualisation.docker.enable = true; + virtualisation.docker = { + enable = true; + # Clean docker images periodically + autoPrune = { + enable = true; + flags = [ "--all" ]; + }; + }; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ];