From 38d1d1ad2e041a3804c2e819b30177e0530e8d3c Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 31 Mar 2017 17:16:05 +0200 Subject: Use patched networkmanager.nix --- custom/uucp.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/uucp.nix b/custom/uucp.nix index 4f2db711..239ec476 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -279,12 +279,14 @@ in { networking.networkmanager.dispatcherScripts = optional cfg.nmDispatch { type = "basic"; - source = '' + source = pkgs.writeScript "callRemotes.sh" '' #!${pkgs.stdenv.shell} + shopt -s extglob + case "''${2}" in (?(vpn-)up) - ${concatMapStringsSep "\n" (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} + ${concatMapStringsSep " \n" (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} ;; esac ''; -- cgit v1.2.3