docker: add prune flag
This commit is contained in:
parent
73d3c13fca
commit
e06710df1a
1 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,4 @@
|
||||||
{pkgs, ...}: {
|
_: {
|
||||||
environment.systemPackages = with pkgs; [docker-compose];
|
|
||||||
|
|
||||||
virtualisation.oci-containers.backend = "docker";
|
virtualisation.oci-containers.backend = "docker";
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -8,6 +6,9 @@
|
||||||
autoPrune = {
|
autoPrune = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
|
flags = [
|
||||||
|
"--all"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
listenOptions = [
|
listenOptions = [
|
||||||
"/run/docker.sock"
|
"/run/docker.sock"
|
||||||
|
|
Loading…
Reference in a new issue