From 770a8a679892dafc4e10c53395723198ccbbcbb9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 12 Sep 2025 02:32:56 +0200 Subject: [PATCH] nixos/tinc: prefer `types.ints` over `addCheck` --- nixos/modules/services/networking/tinc.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix index 709431026739..a26b2af96cd7 100644 --- a/nixos/modules/services/networking/tinc.nix +++ b/nixos/modules/services/networking/tinc.nix @@ -72,7 +72,7 @@ let }; prefixLength = mkOption { - type = with types; nullOr (addCheck int (n: n >= 0 && n <= 128)); + type = with types; nullOr (ints.between 0 128); default = null; description = '' The prefix length of the subnet. @@ -227,7 +227,7 @@ in debugLevel = mkOption { default = 0; - type = types.addCheck types.int (l: l >= 0 && l <= 5); + type = types.ints.between 0 5; description = '' The amount of debugging information to add to the log. 0 means little logging while 5 is the most logging. {command}`man tincd` for