tinc: fix evaluation
This commit is contained in:
parent
5d5ecd9854
commit
597165d8a1
@ -59,6 +59,8 @@ in {
|
|||||||
chown -R tinc.${netname} /etc/tinc/${netname}/hosts
|
chown -R tinc.${netname} /etc/tinc/${netname}/hosts
|
||||||
chmod -R u+w /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 = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
@ -72,9 +74,6 @@ in {
|
|||||||
serviceConfig.ExecReload = "${config.services.tinc.networks.${netname}.package}/bin/tinc -n ${netname} reload";
|
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.allowedTCPPorts = [ 655 ];
|
||||||
networking.firewall.allowedUDPPorts = [ 655 ];
|
networking.firewall.allowedUDPPorts = [ 655 ];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user