Add docker

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-07-31 09:23:46 +01:00
parent af982a9f64
commit 8988398bff
10 changed files with 131 additions and 31 deletions

View File

@@ -0,0 +1,24 @@
{ pkgs, ... }:
{
virtualisation.docker = {
enable = true;
enableOnBoot = false;
storageDriver = "btrfs";
daemon.settings = {
experimental = true;
ipv6 = true;
fixed-cidr-v6 = "fd00::/80";
};
autoPrune = {
enable = true;
flags = [ "--all" ];
};
};
environment = {
persistence."/persist".directories = [ "/var/lib/docker" ];
systemPackages = with pkgs; [ docker-compose ];
};
}