mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(tinc): reaload if changed (stolen from @Mic92)
This commit is contained in:
@@ -55,6 +55,11 @@ in {
|
||||
mkdir -p /etc/tinc/${netname}/hosts/
|
||||
cp ${hostsPackage}/* /etc/tinc/${netname}/hosts/
|
||||
'';
|
||||
|
||||
# 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.extraHosts =
|
||||
|
||||
Reference in New Issue
Block a user