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;