diff --git a/nixos/modules/services/misc/evremap.nix b/nixos/modules/services/misc/evremap.nix index a82719f897170c..ee433aecbf5fd2 100644 --- a/nixos/modules/services/misc/evremap.nix +++ b/nixos/modules/services/misc/evremap.nix @@ -10,7 +10,7 @@ let settings = lib.attrsets.filterAttrs (n: v: v != null) cfg.settings; configFile = format.generate "evremap.toml" settings; - key = lib.types.strMatching "(BTN|KEY)_[[:upper:]]+" // { + key = lib.types.strMatching "(BTN|KEY)_[[:upper:][:digit:]_]+" // { description = "key ID prefixed with BTN_ or KEY_"; };