Unverified Commit 27d6c242 authored by Philip Taron's avatar Philip Taron
Browse files

nixos/networkd: accept `true` and `false` in addition to "yes" and "no" for...

nixos/networkd: accept `true` and `false` in addition to "yes" and "no" for DHCP= and LinkLocalAddressing=

These were the only two systemd configuration values that were missing the `boolValues ++` treatment, according to my `rg` through the codebase.
parent b9652c73
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -647,9 +647,9 @@ let
          "BatmanAdvanced"
        ])
        # Note: For DHCP the values both, none, v4, v6 are deprecated
        (assertValueOneOf "DHCP" ["yes" "no" "ipv4" "ipv6"])
        (assertValueOneOf "DHCP" (boolValues ++ ["ipv4" "ipv6"]))
        (assertValueOneOf "DHCPServer" boolValues)
        (assertValueOneOf "LinkLocalAddressing" ["yes" "no" "ipv4" "ipv6" "fallback" "ipv4-fallback"])
        (assertValueOneOf "LinkLocalAddressing" (boolValues ++ ["ipv4" "ipv6" "fallback" "ipv4-fallback"]))
        (assertValueOneOf "IPv6LinkLocalAddressGenerationMode" ["eui64" "none" "stable-privacy" "random"])
        (assertValueOneOf "IPv4LLRoute" boolValues)
        (assertValueOneOf "DefaultRouteOnDevice" boolValues)