summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authordatafoo <34766150+datafoo@users.noreply.github.com>2022-01-20 12:16:46 +0100
committerdatafoo <34766150+datafoo@users.noreply.github.com>2022-01-20 13:43:12 +0100
commit9bfb803dce4bba176fcdf84f43a9ce2b5725df8b (patch)
treefd9ebcf459b43fc5e38dd197e86c27a9d44e0c07 /nixos/modules/system/boot/networkd.nix
parentdd2dcbbfe893b6511a6b9fbfa610dd29531bfbc4 (diff)
downloadnixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar.gz
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar.bz2
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar.lz
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar.xz
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.tar.zst
nixpkgs-9bfb803dce4bba176fcdf84f43a9ce2b5725df8b.zip
nixos/networking: fix assertion on IPMasquerade
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 1145831ee2e..ac1e4ef34b4 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -513,7 +513,7 @@ let
         (assertValueOneOf "EmitLLDP" (boolValues ++ ["nearest-bridge" "non-tpmr-bridge" "customer-bridge"]))
         (assertValueOneOf "DNSDefaultRoute" boolValues)
         (assertValueOneOf "IPForward" (boolValues ++ ["ipv4" "ipv6"]))
-        (assertValueOneOf "IPMasquerade" boolValues)
+        (assertValueOneOf "IPMasquerade" (boolValues ++ ["ipv4" "ipv6" "both"]))
         (assertValueOneOf "IPv6PrivacyExtensions" (boolValues ++ ["prefer-public" "kernel"]))
         (assertValueOneOf "IPv6AcceptRA" boolValues)
         (assertInt "IPv6DuplicateAddressDetection")