about summary refs log tree commit diff
diff options
context:
space:
mode:
authorr-vdp <ramses@well-founded.dev>2024-02-23 17:37:38 +0100
committerr-vdp <ramses@well-founded.dev>2024-03-08 10:54:03 +0100
commit4c26c97d215a2922ae6ca88b03717e8bf5e06b7c (patch)
tree056e0171b10bf1778cd7cf34ffdfb81bf44ba719
parente65193c59a67e5c3cce061ad86786701c7ff962a (diff)
downloadnixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar.gz
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar.bz2
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar.lz
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar.xz
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.tar.zst
nixlib-4c26c97d215a2922ae6ca88b03717e8bf5e06b7c.zip
nixos/networkd: add missing UseGateway key in the DHCPv4 section
-rw-r--r--nixos/modules/system/boot/networkd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index 88d6a2ded873..b6b0f64b94c8 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -797,6 +797,7 @@ let
           "UseHostname"
           "Hostname"
           "UseDomains"
+          "UseGateway"
           "UseRoutes"
           "UseTimezone"
           "ClientIdentifier"
@@ -829,6 +830,7 @@ let
         (assertValueOneOf "SendHostname" boolValues)
         (assertValueOneOf "UseHostname" boolValues)
         (assertValueOneOf "UseDomains" (boolValues ++ ["route"]))
+        (assertValueOneOf "UseGateway" boolValues)
         (assertValueOneOf "UseRoutes" boolValues)
         (assertValueOneOf "UseTimezone" boolValues)
         (assertValueOneOf "ClientIdentifier" ["mac" "duid" "duid-only"])