lol

nixos/tsm-client: use `lib.concatLines`

Yarny0 ad2b7006 fca76c58

+3 -3
+3 -3
nixos/modules/programs/tsm-client.nix
··· 6 6 inherit (lib.attrsets) attrNames filterAttrs hasAttr mapAttrs mapAttrsToList optionalAttrs; 7 7 inherit (lib.modules) mkDefault mkIf; 8 8 inherit (lib.options) literalExpression mkEnableOption mkOption; 9 - inherit (lib.strings) concatStringsSep optionalString toLower; 9 + inherit (lib.strings) concatLines optionalString toLower; 10 10 inherit (lib.types) addCheck attrsOf lines nonEmptyStr nullOr package path port str strMatching submodule; 11 11 12 12 # Checks if given list of strings contains unique ··· 164 164 mkLine = k: v: k + optionalString (v!="") " ${v}"; 165 165 lines = mapAttrsToList mkLine attrset; 166 166 in 167 - concatStringsSep "\n" lines; 167 + concatLines lines; 168 168 config.stanza = '' 169 169 server ${config.name} 170 170 ${config.text} ··· 263 263 264 264 ${optionalString (cfg.defaultServername!=null) "defaultserver ${cfg.defaultServername}"} 265 265 266 - ${concatStringsSep "\n" (mapAttrsToList (k: v: v.stanza) cfg.servers)} 266 + ${concatLines (mapAttrsToList (k: v: v.stanza) cfg.servers)} 267 267 ''; 268 268 269 269 in