summaryrefslogtreecommitdiff
path: root/os/cez/modules/wireguard.nix
blob: 2bf2252cc0978df630bda579b6fa8f721703a4a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ config, ... }:
{
  sops.secrets."misc/wireguard" = { };

  networking.wg-quick.interfaces.bud = {
    autostart = false;
    address = [ "10.54.132.2/24" ];
    mtu = 1420;
    privateKeyFile = config.sops.secrets."misc/wireguard".path;

    peers = [
      {
        publicKey = "O2GRMEWf22YRGKexHAdg1fitucTZ/U/om2MWEJMeyFQ=";
        allowedIPs = [ "10.54.132.0/24" ];
        endpoint = "primary.k8s.bud.studio:51820";
        persistentKeepalive = 25;
      }
    ];
  };
}