aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Jonglez <git@bitsofnetworks.org>2024-06-02 21:35:36 +0200
committerBaptiste Jonglez <git@bitsofnetworks.org>2024-06-02 21:35:36 +0200
commit67794c53a389a53aec3fe3146d86639637a34a6e (patch)
tree730cacf8b4ef4df45a83803d0a74b1eb8fad5e81
parentba372444473dfe4dc65c8b2c780475acad80ffb1 (diff)
downloadnixcfg-67794c53a389a53aec3fe3146d86639637a34a6e.tar.gz
nixcfg-67794c53a389a53aec3fe3146d86639637a34a6e.zip
Disable DHCPv6 and DHCPv6-PD in all cases
-rw-r--r--nix/deuxfleurs.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nix/deuxfleurs.nix b/nix/deuxfleurs.nix
index 7b9065e..f9fd068 100644
--- a/nix/deuxfleurs.nix
+++ b/nix/deuxfleurs.nix
@@ -204,6 +204,13 @@ in
# link-local addresses
networkConfig.IPv6AcceptRA = mkIf noRA false;
networkConfig.LinkLocalAddressing = mkIf noRA "no";
+
+ # By default, systemd-networkd may try to use DHCPv6 depending on RA flags.
+ # Disable DHCPv6 client and IPv6 Prefix Delegation in all cases.
+ ipv6AcceptRAConfig.DHCPv6Client = false;
+ dhcpV6Config.UseAddress = false;
+ dhcpV6Config.UseDelegatedPrefix = false;
+
};
# Configure Unbound as a central DNS server for everything