{ config, lib, pkgs, ... }: { networking = { # Wireguard tunnel wireguard.interfaces = { wg0 = { ips = [ "10.25.0.12/24" "" ]; listenPort = 51820; privateKeyFile = "/etc/nixos/secrets/wireguard.key"; peers = [ { # crimson publicKey = ""; presharedKey = ""; allowedIPs = [ "10.25.0.0/24" "::/0" ]; endpoint = ":51820"; persistentKeepalive = 25; } ]; }; }; }; }