Commit 6e51b487 authored by Yarny0's avatar Yarny0
Browse files

nixos/hylafax: use `concatLines`

...instead of `concatStringsSep "\n"`
parent 455c195f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
let

  inherit (lib)
    concatLines
    concatStringsSep
    mkIf
    mkMerge
@@ -29,7 +30,7 @@ let
      include = mkLines { Include = conf.Include or [ ]; };
      other = mkLines (conf // { Include = [ ]; });
    in
    pkgs.writeText "hylafax-config${name}" (concatStringsSep "\n" (include ++ other));
    pkgs.writeText "hylafax-config${name}" (concatLines (include ++ other));

  globalConfigPath = mkConfigFile "" cfg.faxqConfig;

@@ -51,7 +52,7 @@ let
    in
    pkgs.runCommand "hylafax-config-modems" {
      preferLocalBuild = true;
    } ''mkdir --parents "$out/" ${concatStringsSep "\n" (mapModems mkLine)}'';
    } ''mkdir --parents "$out/" ${concatLines (mapModems mkLine)}'';

  setupSpoolScript = pkgs.replaceVarsWith {
    name = "hylafax-setup-spool.sh";