summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuka <yuka@yuka.dev>2021-12-07 10:13:22 +0100
committerGitHub <noreply@github.com>2021-12-07 10:13:22 +0100
commitce54a4f6580f644c8280d9f9ad303c0d9778b510 (patch)
tree14b705a1d84b9665190275fefc27539f7212aaf9
parentf2ae3e1530c0a601ce36c004730a92626d498af7 (diff)
downloadnixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar.gz
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar.bz2
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar.lz
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar.xz
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.tar.zst
nixpkgs-ce54a4f6580f644c8280d9f9ad303c0d9778b510.zip
nixos/networkd: add RoutingPolicyRule Type option (#146168)
-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 2e17bdf6bb6..5c074672b99 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -572,6 +572,7 @@ let
           "Family"
           "User"
           "SuppressPrefixLength"
+          "Type"
         ])
         (assertInt "TypeOfService")
         (assertRange "TypeOfService" 0 255)
@@ -584,6 +585,7 @@ let
         (assertValueOneOf "Family" ["ipv4" "ipv6" "both"])
         (assertInt "SuppressPrefixLength")
         (assertRange "SuppressPrefixLength" 0 128)
+        (assertValueOneOf "Type" ["blackhole" "unreachable" "prohibit"])
       ];
 
       sectionRoute = checkUnitConfig "Route" [