From 597165d8a197f5368206cd31cd5e710956c8c4de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 15 Sep 2021 09:31:17 +0200 Subject: [PATCH] tinc: fix evaluation --- modules/retiolum/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/retiolum/default.nix b/modules/retiolum/default.nix index fbbeb9a..d852521 100644 --- a/modules/retiolum/default.nix +++ b/modules/retiolum/default.nix @@ -59,6 +59,8 @@ in { chown -R tinc.${netname} /etc/tinc/${netname}/hosts chmod -R u+w /etc/tinc/${netname}/hosts ''; + # this triggers tinc restarts and it is pointless to restart tinc after the key has been created + restartIfChanged = false; serviceConfig = { Type = "oneshot"; RemainAfterExit = true; @@ -72,9 +74,6 @@ in { serviceConfig.ExecReload = "${config.services.tinc.networks.${netname}.package}/bin/tinc -n ${netname} reload"; }; - # this triggers tinc restarts and it is pointless to restart tinc after the key has been created - systemd.services."tinc.${netname}-host-keys".restartIfChanged = true; - networking.firewall.allowedTCPPorts = [ 655 ]; networking.firewall.allowedUDPPorts = [ 655 ];