moved docker to modules

This commit is contained in:
Richie Cahill
2024-04-18 17:53:15 -04:00
parent 8cc17721f0
commit 7a603ce739
7 changed files with 30 additions and 127 deletions

16
modules/docker.nix Normal file
View File

@ -0,0 +1,16 @@
{ lib, ... }:
{
virtualisation.docker = {
enable = lib.mkDefault true;
logDriver = "local";
storageDriver = "overlay2";
daemon.settings = {
experimental = true;
exec-opts = [ "native.cgroupdriver=systemd" ];
log-opts = {
max-size = "10m";
max-file = "5";
};
};
};
}