From ef76063cd31e9ccea76a425b7552a6486d64d300 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 2 May 2022 08:25:45 +0000 Subject: [PATCH] netconf: remove old wg-quick config --- net-configuration.nix | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/net-configuration.nix b/net-configuration.nix index 4e7d0ae9..2c6541d6 100644 --- a/net-configuration.nix +++ b/net-configuration.nix @@ -11,28 +11,6 @@ # OVPN CONFIG: # DOCS: https://nixos.wiki/wiki/WireGuard - # note: this WORKS. i believe it routes ALL (most??) outbound traffic over wg (but still accepts inbound on eth0??) - # TODO: add wg0 as an interface, and selectively route applications over it. - # try: https://mth.st/blog/nixos-wireguard-netns/ - # networking.wg-quick.interfaces.wg0 = { - # privateKeyFile = "/etc/nixos/wireguard.private"; - # address = [ - # "185.157.162.190/32" - # ]; - # dns = [ - # "46.227.67.134" - # "192.165.9.158" - # ]; - # peers = [ - # { - # publicKey = "Qno+hILmJ8TZ6/PpOOhtspmncyILY2phiTBFaER9IFE="; - # endpoint = "vpn29.prd.amsterdam.ovpn.com:9930"; - # allowedIPs = [ "0.0.0.0/0" ]; - # # nixOS says this is important for keeping NATs active - # persistentKeepalive = 25; - # } - # ]; - # }; # note: without the namespace, you'll need to add a specific route through eth0 for the peer (185.157.162.7/32) networking.wireguard.enable = true; networking.wireguard.interfaces.wg0 = {