From 54f5ec23ece9a3f4a6e554838e3378eb5754e00c Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 22 Sep 2025 15:38:10 +0200 Subject: [PATCH] nixos/hostapd: use more accurate int types --- nixos/modules/services/networking/hostapd.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/hostapd.nix b/nixos/modules/services/networking/hostapd.nix index 5fa3cadb9a7e..a9c686763ca9 100644 --- a/nixos/modules/services/networking/hostapd.nix +++ b/nixos/modules/services/networking/hostapd.nix @@ -274,7 +274,7 @@ in channel = mkOption { default = 0; example = 11; - type = types.int; + type = types.ints.positive; description = '' The channel to operate on. Use 0 to enable ACS (Automatic Channel Selection). Beware that not every device supports ACS in which case {command}`hostapd` @@ -571,7 +571,7 @@ in options = { logLevel = mkOption { default = 2; - type = types.int; + type = types.ints.between 0 4; description = '' Levels (minimum value for logged events): 0 = verbose debugging @@ -957,7 +957,7 @@ in vlanid = mkOption { default = null; example = 1; - type = types.nullOr types.int; + type = types.nullOr types.ints.unsigned; description = "If this attribute is given, all clients using this entry will get tagged with the given VLAN ID."; };