1
0
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:
2020-12-16 22:25:27 +01:00
parent a7d994abe7
commit 2bf095c553

View File

@@ -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 =