nixos/tsm-client: server alias names cannot have spaces

This commit is contained in:
Yarny0 2023-08-21 16:45:24 +02:00
parent fe96d79adf
commit 5bc6eb731e

View File

@ -10,7 +10,7 @@ let
inherit (lib.types) addCheck attrsOf lines nonEmptyStr nullOr path port str strMatching submodule;
# TSM rejects servername strings longer than 64 chars.
servernameType = strMatching ".{1,64}";
servernameType = strMatching "[^[:space:]]{1,64}";
serverOptions = { name, config, ... }: {
options.name = mkOption {