From 962e6c0a9abd7a54b739a473fff20451df8f4ebd Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Sat, 28 Oct 2017 23:46:11 +0200
Subject: typing

---
 custom/tinc/def.nix | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'custom/tinc')

diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix
index 0fa0b912..c360c4d5 100644
--- a/custom/tinc/def.nix
+++ b/custom/tinc/def.nix
@@ -143,9 +143,9 @@ in
       } // data.interfaceConfig)
     );
 
-    networking.networkmanager.dispatcherScripts = flip mapAttrs' cfg.networks (network: data: optional data.nmDispatch {
+    networking.networkmanager.dispatcherScripts = flatten (flip mapAttrs' cfg.networks (network: data: optional data.nmDispatch {
       type = "basic";
-      source = pkgs.writeScript "connectRemotes.sh" ''
+      source = pkgs.writeScript "connect-${network}.sh" ''
         #!${pkgs.stdenv.shell}
 
         shopt -s extglob
@@ -156,7 +156,7 @@ in
             ;;
         esac
       '';
-    });
+    }));
 
     systemd.services = flip mapAttrs' cfg.networks (network: data: nameValuePair
       ("tinc.${network}")
-- 
cgit v1.2.3