summaryrefslogtreecommitdiff
path: root/nixos/hosts/bed/components/wireguard.nix
blob: b4f64ecb852ae515efd746632dafd0bd21be1c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
  networking.wireguard.interfaces.wg0 = {
    ips = [ "10.0.0.3/24" ];
    privateKeyFile = "/var/lib/wireguard/privatekey";

    peers = [
      {
        publicKey = " ";
        endpoint = "5.231.118.254:51820";
        allowedIPs = [ "10.0.0.0/24" ];
        persistentKeepalive = 25;
      }
    ];
  };
}