summaryrefslogtreecommitdiff
path: root/custom/tinc
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-10-28 23:33:34 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2017-10-28 23:33:34 +0200
commit5f5b00137c6f7b51eee6cc8d06373cd32728bac5 (patch)
tree7bafbd46ceb2dc52d957e72073fa5c056dfceb7d /custom/tinc
parent5efc073da094c34383b17eee1b63e0e9588e171f (diff)
downloadnixos-5f5b00137c6f7b51eee6cc8d06373cd32728bac5.tar
nixos-5f5b00137c6f7b51eee6cc8d06373cd32728bac5.tar.gz
nixos-5f5b00137c6f7b51eee6cc8d06373cd32728bac5.tar.bz2
nixos-5f5b00137c6f7b51eee6cc8d06373cd32728bac5.tar.xz
nixos-5f5b00137c6f7b51eee6cc8d06373cd32728bac5.zip
poke tinc
Diffstat (limited to 'custom/tinc')
-rw-r--r--custom/tinc/def.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/custom/tinc/def.nix b/custom/tinc/def.nix
index 563335ad..2cdf1b01 100644
--- a/custom/tinc/def.nix
+++ b/custom/tinc/def.nix
@@ -144,7 +144,7 @@ in
144 restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ] 144 restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ]
145 ++ mapAttrsToList (host: _ : config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts; 145 ++ mapAttrsToList (host: _ : config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts;
146 serviceConfig = { 146 serviceConfig = {
147 Type = "simple"; 147 Type = "forking";
148 PIDFile = "/run/tinc.${network}.pid"; 148 PIDFile = "/run/tinc.${network}.pid";
149 }; 149 };
150 preStart = '' 150 preStart = ''
@@ -163,7 +163,7 @@ in
163 fi 163 fi
164 ''; 164 '';
165 script = '' 165 script = ''
166 tincd -D -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel} 166 tincd -L -U tinc.${network} -n ${network} --pidfile /run/tinc.${network}.pid -d ${toString data.debugLevel}
167 ''; 167 '';
168 }) 168 })
169 ); 169 );