-
Notifications
You must be signed in to change notification settings - Fork 0
/
wireguard.nix
47 lines (43 loc) · 1.06 KB
/
wireguard.nix
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
{ config, ... }:
{
age.secrets.nocomKey.file = ./secrets/nocom-wireguard-key.age;
age.secrets.hetznerKey.file = ./secrets/hetzner-wireguard-key.age;
age.identityPaths = [
"/home/babbaj/.ssh/id_rsa"
];
networking.wireguard.interfaces = {
kittens = {
privateKeyFile = config.age.secrets.nocomKey.path;
ips = [
"192.168.69.88/24"
];
peers = [
{
allowedIPs = [
"192.168.69.0/24"
];
publicKey = "tQFBf1YlSZO/jzkvkqpYsbp5we9j87TSox0DY/oozzI=";
endpoint = "sneed:14030";
persistentKeepalive = 25;
}
];
};
vultr = {
privateKeyFile = config.age.secrets.hetznerKey.path;
ips = [
"192.168.70.88/24"
];
peers = [
{
allowedIPs = [
"192.168.70.0/24"
];
publicKey = "J3EtsgrqBybYSm8ui4bT14Z8XVehW6xiStsG7q1R+B4=";
#endpoint = "babbaj.dev:14031";
endpoint = "45.77.103.113:51820";
persistentKeepalive = 25;
}
];
};
};
}