aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2023-10-06 15:31:15 +0000
committerMel <einebeere@gmail.com>2023-10-06 15:31:15 +0000
commitb6b486d6a5ad685530e0539322244e21c94606bf (patch)
tree7e7fdaa0d2d01b87db1535c3d25ad3bc842bb1a5
parentce5770bf4fff5381c8dcfb2013d8f5370c56822b (diff)
downloadrnrd-b6b486d6a5ad685530e0539322244e21c94606bf.tar.zst
rnrd-b6b486d6a5ad685530e0539322244e21c94606bf.zip
IPv6 specific docker configuration for lapin
-rw-r--r--machines/lapin.nix31
1 files changed, 26 insertions, 5 deletions
diff --git a/machines/lapin.nix b/machines/lapin.nix
index 21c24d8..ef92139 100644
--- a/machines/lapin.nix
+++ b/machines/lapin.nix
@@ -1,12 +1,12 @@
{ ... }:
+let
+ nameservers = [ "2a01:4ff:ff00::add:1" "2a01:4ff:ff00::add:2" ];
+in
{
networking = {
defaultGateway = "172.31.1.1";
- nameservers = [
- "185.12.64.1" "185.12.64.2"
- "2a01:4ff:ff00::add:1" "2a01:4ff:ff00::add:2"
- ];
+ inherit nameservers;
};
systemd.network.enable = true;
@@ -16,4 +16,25 @@
address = [ "2a01:4f8:c012:9493::1" ];
routes = [ { routeConfig.Gateway = "fe80::1"; } ];
};
-} \ No newline at end of file
+
+ virtualisation.docker.daemon.settings = {
+ "experimental" = true;
+ "ipv6" = true;
+ "ip6tables" = true;
+ "fixed-cidr-v6" = "fc00:d0c:b1b1::/48";
+ "bip" = "172.17.0.1/24";
+ "default-address-pools" = [
+ { base = "172.17.0.0/16"; size = 24; }
+ { base = "fc00:d0c::/32"; size = 48; }
+ ];
+ "dns" = nameservers;
+ };
+
+ services.nginx.virtualHosts = {
+ "soc.rnrd.eu" = {
+ locations."/" = {
+ proxyPass = "http://127.0.0.1:1111";
+ };
+ };
+ };
+}