aboutsummaryrefslogtreecommitdiff
path: root/modules/wireguard/roaming.nix
blob: a89ce5d2c4d988ec8ce963d3a2dfb4fccfa5d3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{ config, pkgs, lib, ... }:

{
  config = lib.mkIf config.wireguard.enable {
    networking.wireguard.interfaces.wg0.peers = lib.mkIf config.wireguard.roaming [
      { # audron computer
        publicKey = "okZQ5cMSu4+M3IKp1yIBuknmAKEzJLKe8tpVeY46phU=";
        allowedIPs = [
          "10.10.0.10/32"
          "2a0f:9400:8020:beef::10/128"
          "fd15:3d8c:d429:beef::10/128"
        ];
      }
      { # audron homeassistant
        publicKey = "afIZuhegBlyTmmzjikqtJ6lqYF2clfxtE4ZzQ9oijCg=";
        allowedIPs = [
          "10.10.0.14/32"
          "2a0f:9400:8020:beef::14/128"
          "fd15:3d8c:d429:beef::14/128"
        ];
      }
      { # audron phone
        publicKey = "LDzzGWlBmy9FQ/+bNAaLM2TmS8OR291uVTntwmb/gmM=";
        allowedIPs = [
          "10.10.0.15/32"
          "2a0f:9400:8020:beef::15/128"
          "fd15:3d8c:d429:beef::15/128"
        ];
      }
      { # d3fus computer
        publicKey = "CoMGgzL31yb0ozA17OuF0IDpkV2dnJ7j74itaQb0k1U=";
        allowedIPs = [
          "10.10.0.20/32"
          "2a0f:9400:8020:beef::20/128"
          "fd15:3d8c:d429:beef::20/128"
        ];
      }
      { # d3fus streamer
        publicKey = "byHXbaIVKARj3RBqyRuEUAsU5qeh/bmp/OLn6Y9qJV8=";
        allowedIPs = [
          "10.10.0.21/32"
          "2a0f:9400:8020:beef::21/128"
          "fd15:3d8c:d429:beef::21/128"
        ];
      }
      { # d3fus phone
        publicKey = "OEi+MTdy8oMWhkyC5NKHl6ztk92o4gYkgCTt5EMN5i4=";
        allowedIPs = [
          "10.10.0.22/32"
          "2a0f:9400:8020:beef::22/128"
          "fd15:3d8c:d429:beef::22/128"
        ];
      }
      { # d3fus mac
        publicKey = "dWWragU6AwsJeX6EhtybtT1VmjPdaSDKqmU/yxZQuxo=";
        allowedIPs = [
          "10.10.0.23/32"
          "2a0f:9400:8020:beef::23/128"
          "fd15:3d8c:d429:beef::23/128"
        ];
      }
    ];
  };
}