git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41904 from volth/patch-156

nixos/tinc: minor fixes

commit69ffc8dc6a7724068b41a5d079e897c36083616d authorJörg Thalheim <Mic92@users.noreply.github.com> dateWed 13 Jun 2018, 08:16 (8 years ago) parentb346b023ae0185
1 file changed+3−7
nixos/modules/services/networking/tinc.nix+3−7
nixos/modules/services/networking/tinc.nix+3−7
@@ -163,12 +163,7 @@ in
163163 wantedBy = [ "multi-user.target" ];
164164 after = [ "network.target" ];
165165 path = [ data.package ];
166− restartTriggers =
167− let
168− drvlist = [ config.environment.etc."tinc/${network}/tinc.conf".source ]
169− ++ mapAttrsToList (host: _: config.environment.etc."tinc/${network}/hosts/${host}".source) data.hosts;
170− in # drvlist might be too long to be used directly
171− [ (builtins.hashString "sha256" (concatMapStrings (d: d.outPath) drvlist)) ];
166+ restartTriggers = [ config.environment.etc."tinc/${network}/tinc.conf".source ];
172167 serviceConfig = {
173168 Type = "simple";
174169 Restart = "always";
@@ -207,7 +202,8 @@ in
207202 ${concatStringsSep "\n" (mapAttrsToList (network: data:
208203 optionalString (versionAtLeast data.package.version "1.1pre") ''
209204 makeWrapper ${data.package}/bin/tinc "$out/bin/tinc.${network}" \
210− --add-flags "--pidfile=/run/tinc.${network}.pid"
205+ --add-flags "--pidfile=/run/tinc.${network}.pid" \
206+ --add-flags "--config=/etc/tinc/${network}"
211207 '') cfg.networks)}
212208 '';
213209 };