mirror of
https://github.com/kmein/niveum
synced 2026-03-19 19:41: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/
|
mkdir -p /etc/tinc/${netname}/hosts/
|
||||||
cp ${hostsPackage}/* /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 =
|
networking.extraHosts =
|
||||||
|
|||||||
Reference in New Issue
Block a user