Browse Source

tinc: reload instead of restart

master
Jörg Thalheim 5 months ago
parent
commit
6562fb28a1
No known key found for this signature in database GPG Key ID: 3F2096411B5F92
  1. 8
      modules/retiolum/default.nix

8
modules/retiolum/default.nix

@ -65,8 +65,12 @@ in {
};
};
# Some hosts require VPN for nixos-rebuild, so we don't want to restart it on update
systemd.services."tinc.${netname}".restartIfChanged = false;
systemd.services."tinc.${netname}" = {
# Some hosts require VPN for nixos-rebuild, so we don't want to restart it on update
reloadIfChanged = true;
# also in https://github.com/NixOS/nixpkgs/pull/106715
serviceConfig.ExecReload = "${config.services.tinc.networks.${netname}.package}/bin/tinc -n ${netname} reload";
};
networking.firewall.allowedTCPPorts = [ 655 ];
networking.firewall.allowedUDPPorts = [ 655 ];

Loading…
Cancel
Save