servo-vpn: resolve DNS through the VPN

This commit is contained in:
2023-09-22 19:49:35 +00:00
parent a2f4dc0b6c
commit 69ab1c1b8f
2 changed files with 4 additions and 1 deletions

View File

@@ -38,7 +38,9 @@ let
endpoint = config.sane.hosts.by-name."servo".wg-home.endpoint;
publicKey = config.sane.hosts.by-name."servo".wg-home.pubkey;
address = [ config.sane.services.wg-home.ip ];
dns = [ "10.78.79.1" ];
dns = [
config.sane.hosts.by-name."servo".wg-home.ip
];
privateKeyFile = config.networking.wireguard.interfaces.wg-home.privateKeyFile;
extraOptions = {
# wg-home and vpn-servo interfaces interfere with the result that when connected to both,

View File

@@ -83,6 +83,7 @@ in
{
listenPort = 51820;
privateKeyFile = "/run/wg-home.priv";
# TODO: this make this `wants` and `after`, instead of manually starting it
preSetup =
let
gen-key = config.sane.fs."/run/wg-home.priv".unit;