From c7bda3bc1f36c416a28a7ae072797ffc6ce91718 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Sun, 16 Sep 2018 17:00:34 +0200 Subject: [PATCH] [ASUS] Configuration client Wireguard --- systems/ASUS-G46VW/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/systems/ASUS-G46VW/configuration.nix b/systems/ASUS-G46VW/configuration.nix index 66afddf..f354841 100644 --- a/systems/ASUS-G46VW/configuration.nix +++ b/systems/ASUS-G46VW/configuration.nix @@ -168,6 +168,21 @@ # Or disable the firewall altogether. networking.firewall.enable = false; + networking.wireguard.interfaces = { + wg0 = { + ips = [ "192.168.20.2/24" ]; + allowedIPsAsRoutes = false; + peers = [ + { + allowedIPs = [ "0.0.0.0/0" ]; + endpoint = "nyanlout.re:51820"; + publicKey = "NVLJ30kNP+fK+K3oM1LAcQpvZvz1dvBD8mWNjDf5Z2k="; + } + ]; + privateKeyFile = "/var/lib/wireguard/wg0.privatekey"; + }; + }; + # Enable CUPS to print documents. services.printing.enable = true;