blob: 83c346d05df11d0a91c783ecc15ac384c52c438a (
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
|
{ config, lib, pkgs, ... }:
let endpoint = "207.246.124.62";
in
{
networking = {
domain = "ns.vapor.systems";
hostName = "nyc01";
interfaces.eth0 = {
ipv4.addresses = [{
address = "207.246.124.62";
prefixLength = 23;
}];
ipv6.addresses = [{
address = "2001:19f0:5:13df:5400:3ff:fed5:f26c";
prefixLength = 64;
}];
};
defaultGateway = "207.246.124.1";
defaultGateway6 = {
address = "fe80::fc00:3ff:fed5:f26c";
interface = "eth0";
};
};
pubKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIC00bSIp5oydOY/SFxPULYFtij5nsZCugdiR3q7PxNqC";
services.powerdns.role = "secondary";
wireguard = {
enable = true;
inherit endpoint;
v4 = { address = "10.10.0.4"; };
v6 = { address = "4"; };
publicKey = "aVIWBqnUhYEwXMuHiUmsU4nKmFhsIj9Nb6rx4TGFvRY=";
allowedIPs = [ "10.102.3.0/24" "fd15:3d8c:d429:102:300::/72" ];
};
deploy = {
host = endpoint;
buildOn = "local";
substituteOnTarget = true;
hermetic = false;
};
}
|