diff --git a/openwrt/uci.nix b/openwrt/uci.nix index 92cd995..7cdccea 100644 --- a/openwrt/uci.nix +++ b/openwrt/uci.nix @@ -61,7 +61,12 @@ let uciIdentifierCheck = type: attrs: let invalid = lib.filter - (n: builtins.match "[a-zA-Z0-9_]+" n == null) + (n: builtins.match ( + if type == "config" then + "[a-zA-Z0-9_-]+" + else + "[a-zA-Z0-9_]+" + ) n == null) (lib.attrNames attrs); in lib.warnIf