diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-31 17:16:05 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-03-31 17:16:05 +0200 |
commit | 38d1d1ad2e041a3804c2e819b30177e0530e8d3c (patch) | |
tree | 746b8be3f3513f199af904b779aed6e01d6c7dcc | |
parent | 2d7cd9fe1ee68141c4dc9464ae8690524bce1780 (diff) | |
download | nixos-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.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 | ''; |