matrix: configure sliding sync proxy

This commit is contained in:
Charlotte Van Petegem 2024-06-17 10:43:55 +02:00
parent 8dea344121
commit 67cd1b08b5
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 = {