summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
Diffstat (limited to 'custom')
-rw-r--r--custom/tinc/def.nix6
1 files changed, 3 insertions, 3 deletions
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
143 } // data.interfaceConfig) 143 } // data.interfaceConfig)
144 ); 144 );
145 145
146 networking.networkmanager.dispatcherScripts = flip mapAttrs' cfg.networks (network: data: optional data.nmDispatch { 146 networking.networkmanager.dispatcherScripts = flatten (flip mapAttrs' cfg.networks (network: data: optional data.nmDispatch {
147 type = "basic"; 147 type = "basic";
148 source = pkgs.writeScript "connectRemotes.sh" '' 148 source = pkgs.writeScript "connect-${network}.sh" ''
149 #!${pkgs.stdenv.shell} 149 #!${pkgs.stdenv.shell}
150 150
151 shopt -s extglob 151 shopt -s extglob
@@ -156,7 +156,7 @@ in
156 ;; 156 ;;
157 esac 157 esac
158 ''; 158 '';
159 }); 159 }));
160 160
161 systemd.services = flip mapAttrs' cfg.networks (network: data: nameValuePair 161 systemd.services = flip mapAttrs' cfg.networks (network: data: nameValuePair
162 ("tinc.${network}") 162 ("tinc.${network}")