summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-31 17:16:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-31 17:16:05 +0200
commit38d1d1ad2e041a3804c2e819b30177e0530e8d3c (patch)
tree746b8be3f3513f199af904b779aed6e01d6c7dcc
parent2d7cd9fe1ee68141c4dc9464ae8690524bce1780 (diff)
downloadnixos-38d1d1ad2e041a3804c2e819b30177e0530e8d3c.tar
nixos-38d1d1ad2e041a3804c2e819b30177e0530e8d3c.tar.gz
nixos-38d1d1ad2e041a3804c2e819b30177e0530e8d3c.tar.bz2
nixos-38d1d1ad2e041a3804c2e819b30177e0530e8d3c.tar.xz
nixos-38d1d1ad2e041a3804c2e819b30177e0530e8d3c.zip
Use patched networkmanager.nix
-rw-r--r--custom/uucp.nix6
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 '';