diff options
| author | Mel <mel@rnrd.eu> | 2026-05-01 22:58:51 +0200 |
|---|---|---|
| committer | Mel <mel@rnrd.eu> | 2026-05-01 23:24:10 +0200 |
| commit | a205d5b3900fd0024fc94a1fa751ec96cc3f6ed8 (patch) | |
| tree | f6f698cd3f0c859cf4409a7f8387fbeb029a8115 /modules/foundation/services | |
| parent | 5020b67d56c21f6fc58bc7b0d73d75fc07c64acf (diff) | |
| download | network-a205d5b3900fd0024fc94a1fa751ec96cc3f6ed8.tar.zst network-a205d5b3900fd0024fc94a1fa751ec96cc3f6ed8.zip | |
Add Docker 29 for nftables, clean-up daemon options
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'modules/foundation/services')
| -rw-r--r-- | modules/foundation/services/networks.nix | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/modules/foundation/services/networks.nix b/modules/foundation/services/networks.nix index b5f1732..00a4045 100644 --- a/modules/foundation/services/networks.nix +++ b/modules/foundation/services/networks.nix @@ -183,22 +183,9 @@ in assert assertMsg (defaultsCount != 0) "no default service network"; builtins.head networksLabeledDefault; - # we need these settings to allow our networks to be IPv6-enabled. - # we also ignore the default bridge, because it's setup - # is a lot more complicated... virtualisation.docker.daemon.settings = { - experimental = true; - ipv6 = true; - ip6tables = true; - "ip-forward" = true; - "firewall-backend" = "nftables"; - fixed-cidr-v6 = "${cfg.defaultIPv6SubnetPrefix}:255::/${toString cfg.defaultIPv6SubnetLength}"; - }; - - # turn these ipv6 forwarding on, if it isn't already. - boot.kernel.sysctl = { - "net.ipv6.conf.all.forwarding" = lib.mkDefault 1; - "net.ipv6.conf.default.forwarding" = lib.mkDefault 1; + # a feeble attempt at making the default bridge support ipv6... + "fixed-cidr-v6" = "${cfg.defaultIPv6SubnetPrefix}:255::/${toString cfg.defaultIPv6SubnetLength}"; }; networking.firewall = { @@ -223,7 +210,7 @@ in serviceGroup ; - docker = getExe pkgs.docker; + docker = lib.getExe config.virtualisation.docker.package; subnet = if ipv6.subnet == null then subnetByIndex index else ipv6.subnet; gateway = if ipv6.gateway == null then gatewayByIndex index else ipv6.gateway; |
