Reapply "matrix: configure sliding sync proxy"

This reverts commit 0f844c8bb2.
This commit is contained in:
Charlotte Van Petegem 2024-06-17 11:10:26 +02:00
parent 0f844c8bb2
commit 6cb5887bba
No known key found for this signature in database
GPG key ID: 019E764B7184435A
5 changed files with 55 additions and 27 deletions

View file

@ -119,7 +119,8 @@ in
domains = [ "internal" ];
dns = [ data.lasting-integrity.ip ];
linkConfig.MTUBytes = "1342";
routes = [(
routes = [
(
if config.chvp.base.network.wireguard.server then {
Gateway = "${data.${config.networking.hostName}.ip}";
Destination = subnet;
@ -128,7 +129,8 @@ in
Destination = subnet;
GatewayOnLink = true;
}
)];
)
];
};
};
services = {