diff options
author | Baptiste Jonglez <git@bitsofnetworks.org> | 2024-06-02 21:35:36 +0200 |
---|---|---|
committer | Baptiste Jonglez <git@bitsofnetworks.org> | 2024-06-02 21:35:36 +0200 |
commit | 67794c53a389a53aec3fe3146d86639637a34a6e (patch) | |
tree | 730cacf8b4ef4df45a83803d0a74b1eb8fad5e81 | |
parent | ba372444473dfe4dc65c8b2c780475acad80ffb1 (diff) | |
download | nixcfg-67794c53a389a53aec3fe3146d86639637a34a6e.tar.gz nixcfg-67794c53a389a53aec3fe3146d86639637a34a6e.zip |
Disable DHCPv6 and DHCPv6-PD in all cases
-rw-r--r-- | nix/deuxfleurs.nix | 7 |
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 |