blob: d6984e71f02971868ef41e858a7374f83dfe6078 (
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 = "95.179.243.82";
in
{
networking = {
domain = "ns.vapor.systems";
hostName = "fra01";
dhcpcd.enable = false;
interfaces.eth0 = {
ipv4.addresses = [{
address = "95.179.243.82";
prefixLength = 23;
}];
ipv6.addresses = [{
address = "2001:19f0:6c01:28e5:5400:3ff:fed7:7a2a";
prefixLength = 64;
}];
};
defaultGateway = "95.179.242.1";
defaultGateway6 = {
address = "fe80::fc00:3ff:fed7:7a2a";
interface = "eth0";
};
};
pubKey =
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9rBu7L0ktMFpYOqvKyjDoO8a5Y0CfqnCJCGEdE6cOV";
services.powerdns.role = "secondary";
wireguard = {
enable = true;
inherit endpoint;
v4 = { address = "10.10.0.3"; };
v6 = { address = "3"; };
publicKey = "jw3hiRczS0kQoOYlgofFp23/YZq8mzDaPRto+qVz7iE=";
allowedIPs = [ "10.102.5.0/24" "fd15:3d8c:d429:102:500::/72" ];
};
deploy = {
host = endpoint;
buildOn = "local";
substituteOnTarget = true;
hermetic = false;
};
}
|