about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2022-10-27 08:10:05 +0200
committerGitHub <noreply@github.com>2022-10-27 08:10:05 +0200
commit263575432d810eaa18de800fd7436e3d12623c42 (patch)
treef5e09302094f5ece9ac1bf2350d2a326e5da10dd /nixos/modules
parent06372b5e9979c40d1ece4c85046a992249fc89ab (diff)
parentfde313902ff035649e34924abef80470ffe7cd1b (diff)
Merge pull request #198008 from danielbarter/networkd-Address-RouteMetric
networkd: RouteMetric in Address section of a networkd config file
Diffstat (limited to 'nixos/modules')
-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 a9b81dd116bbd..28abf820ec097 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -584,6 +584,7 @@ let
           "Label"
           "PreferredLifetime"
           "Scope"
+          "RouteMetric"
           "HomeAddress"
           "DuplicateAddressDetection"
           "ManageTemporaryAddress"
@@ -592,6 +593,7 @@ let
         ])
         (assertHasField "Address")
         (assertValueOneOf "PreferredLifetime" ["forever" "infinity" "0" 0])
+        (assertInt "RouteMetric")
         (assertValueOneOf "HomeAddress" boolValues)
         (assertValueOneOf "DuplicateAddressDetection" ["ipv4" "ipv6" "both" "none"])
         (assertValueOneOf "ManageTemporaryAddress" boolValues)