summary refs log tree commit diff
path: root/nixos/modules/system/boot/networkd.nix
diff options
context:
space:
mode:
authorBen Wolsieffer <benwolsieffer@gmail.com>2018-08-21 17:20:55 -0400
committerRobin Gloster <mail@glob.in>2018-08-22 00:11:14 +0200
commit6897945879859956c4165efdd4bdf04ab930fa69 (patch)
tree83a16b0a73facf784089e59223d09c43ec24e3d9 /nixos/modules/system/boot/networkd.nix
parent35ae816e17dcd215e6f8ade19436e5730ee95902 (diff)
downloadnixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar.gz
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar.bz2
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar.lz
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar.xz
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.tar.zst
nixpkgs-6897945879859956c4165efdd4bdf04ab930fa69.zip
nixos/networkd: replace range with assertRange
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r--nixos/modules/system/boot/networkd.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix
index a3b7d7ba07a..c11aaeaeb6d 100644
--- a/nixos/modules/system/boot/networkd.nix
+++ b/nixos/modules/system/boot/networkd.nix
@@ -30,10 +30,10 @@ let
     (assertValueOneOf "UDPSegmentationOffload" boolValues)
     (assertValueOneOf "GenericReceiveOffload" boolValues)
     (assertValueOneOf "LargeReceiveOffload" boolValues)
-    (range "RxChannels" 1 4294967295)
-    (range "TxChannels" 1 4294967295)
-    (range "OtherChannels" 1 4294967295)
-    (range "CombinedChannels" 1 4294967295)
+    (assertRange "RxChannels" 1 4294967295)
+    (assertRange "TxChannels" 1 4294967295)
+    (assertRange "OtherChannels" 1 4294967295)
+    (assertRange "CombinedChannels" 1 4294967295)
   ];
 
   checkNetdev = checkUnitConfig "Netdev" [