docker: add prune flag

This commit is contained in:
notohh 2024-01-27 19:18:33 -05:00
parent 73d3c13fca
commit e06710df1a
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -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"