diff options
-rw-r--r-- | custom/uucp.nix | 6 |
1 files changed, 4 insertions, 2 deletions
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 { | |||
279 | 279 | ||
280 | networking.networkmanager.dispatcherScripts = optional cfg.nmDispatch { | 280 | networking.networkmanager.dispatcherScripts = optional cfg.nmDispatch { |
281 | type = "basic"; | 281 | type = "basic"; |
282 | source = '' | 282 | source = pkgs.writeScript "callRemotes.sh" '' |
283 | #!${pkgs.stdenv.shell} | 283 | #!${pkgs.stdenv.shell} |
284 | 284 | ||
285 | shopt -s extglob | ||
286 | |||
285 | case "''${2}" in | 287 | case "''${2}" in |
286 | (?(vpn-)up) | 288 | (?(vpn-)up) |
287 | ${concatMapStringsSep "\n" (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} | 289 | ${concatMapStringsSep " \n" (name: "${config.security.wrapperDir}/uucico -D -S ${name}") cfg.remoteNodes} |
288 | ;; | 290 | ;; |
289 | esac | 291 | esac |
290 | ''; | 292 | ''; |