From e06710df1ab5e6fcf8a0a551b288e4036235a8a2 Mon Sep 17 00:00:00 2001 From: notohh Date: Sat, 27 Jan 2024 19:18:33 -0500 Subject: [PATCH] docker: add prune flag --- modules/virtualisation.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/virtualisation.nix b/modules/virtualisation.nix index 7ba55dd..b326b11 100644 --- a/modules/virtualisation.nix +++ b/modules/virtualisation.nix @@ -1,6 +1,4 @@ -{pkgs, ...}: { - environment.systemPackages = with pkgs; [docker-compose]; - +_: { virtualisation.oci-containers.backend = "docker"; virtualisation.docker = { enable = true; @@ -8,6 +6,9 @@ autoPrune = { enable = true; dates = "weekly"; + flags = [ + "--all" + ]; }; listenOptions = [ "/run/docker.sock"