From 66da8cd1049f882b1f59e42e611224939b10c85d Mon Sep 17 00:00:00 2001
From: ahuston-0 <aliceghuston@gmail.com>
Date: Tue, 4 Mar 2025 01:29:49 -0500
Subject: [PATCH] expand docker network pool on palatine-hill

---
 systems/palatine-hill/docker/default.nix | 53 +++++++++++++++++++++++-
 1 file changed, 52 insertions(+), 1 deletion(-)

diff --git a/systems/palatine-hill/docker/default.nix b/systems/palatine-hill/docker/default.nix
index 40ca5ce..33149f2 100644
--- a/systems/palatine-hill/docker/default.nix
+++ b/systems/palatine-hill/docker/default.nix
@@ -24,5 +24,56 @@
   ];
 
   virtualisation.oci-containers.backend = "docker";
-  virtualisation.docker.daemon.settings.data-root = "/var/lib/docker2";
+  virtualisation.docker.daemon.settings = {
+    data-root = "/var/lib/docker2";
+    bip = "169.254.253.254/23";
+    fixed-cidr = "169.254.252.0/23";
+    default-address-pools = [
+      {
+        base = "169.254.2.0/23";
+        size = "28";
+      }
+      {
+        base = "169.254.4.0/22";
+        size = "28";
+      }
+      {
+        base = "169.254.8.0/21";
+        size = "28";
+      }
+      {
+        base = "169.254.16.0/20";
+        size = "28";
+      }
+      {
+        base = "169.254.32.0/19";
+        size = "28";
+      }
+      {
+        base = "169.254.64.0/18";
+        size = "28";
+      }
+      {
+        base = "169.254.128.0/18";
+        size = "28";
+      }
+      {
+        base = "169.254.192.0/19";
+        size = "28";
+      }
+      {
+        base = "169.254.224.0/20";
+        size = "28";
+      }
+      {
+        base = "169.254.240.0/21";
+        size = "28";
+      }
+      {
+        base = "169.254.248.0/22";
+        size = "28";
+      }
+    ];
+    mtu = 9000;
+  };
 }