diff --git a/nixos/modules/programs/tsm-client.nix b/nixos/modules/programs/tsm-client.nix index bf240ea64cb3..039eab1af553 100644 --- a/nixos/modules/programs/tsm-client.nix +++ b/nixos/modules/programs/tsm-client.nix @@ -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 {