From a3502ce29dffba0a081b1b6e598bdd59a8b795e4 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 27 Oct 2024 12:54:10 +0530 Subject: [PATCH] all: bypass vpns to reach proxy --- hosts/shared/networkd.nix | 7 +++++++ hosts/wynne/services/apps/dendrite/default.nix | 16 ++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/hosts/shared/networkd.nix b/hosts/shared/networkd.nix index b14a5a6..3b2317b 100644 --- a/hosts/shared/networkd.nix +++ b/hosts/shared/networkd.nix @@ -24,6 +24,13 @@ _: { linkConfig = { RequiredForOnline = "yes"; }; + routes = [ + { + Destination = "165.232.180.97"; + Gateway = "_dhcp4"; + GatewayOnLink = "yes"; + } + ]; }; }; }; diff --git a/hosts/wynne/services/apps/dendrite/default.nix b/hosts/wynne/services/apps/dendrite/default.nix index d3088b8..02a7802 100644 --- a/hosts/wynne/services/apps/dendrite/default.nix +++ b/hosts/wynne/services/apps/dendrite/default.nix @@ -40,14 +40,14 @@ in transport.useCompression = true; } ]; - #matrix-sliding-sync = { - #enable = true; - #settings = { - # SYNCV3_SERVER = "https://${domainName}"; - # SYNCV3_BINDADDR = "127.0.0.1:8009"; - # SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; - #}; - #environmentFile = config.sops.secrets."matrix/syncv3_secret".path; + #matrix-sliding-sync = { + #enable = true; + #settings = { + # SYNCV3_SERVER = "https://${domainName}"; + # SYNCV3_BINDADDR = "127.0.0.1:8009"; + # SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; + #}; + #environmentFile = config.sops.secrets."matrix/syncv3_secret".path; #}; }; systemd.services.dendrite =