blob: 6115145215dd5c01a8b6b08a077d2d258d04dade (
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
65
66
|
{ lib, ... }:
{
networking = {
# Previously Hetzer didn't really work with simple DHCP,
# now it does?? I think?? Either way I'll leave the static
# networkd configuration below.
useDHCP = true;
nameservers = [
"1.1.1.1" "1.0.0.1"
"2606:4700:4700::1111" "2606:4700:4700::1001"
];
};
# Legacy networkd static network configuration,
# Maybe will be needed again?
# systemd.network.enable = true;
# systemd.network.networks."10-wan" = {
# name = "enp1s0";
# DHCP = "yes";
# address = [
# "2a01:4f8:c012:9493::1"
# "138.201.117.99"
# ];
# routes = [
# { routeConfig.Gateway = "fe80::1"; }
# { routeConfig.Destination = "172.31.1.1"; }
# { routeConfig = { Gateway = "172.31.1.1"; GatewayOnLink = true; }; }
# ];
# };
services.resolved = {
# LLMNR and MulticastDNS both give DNS timeouts.
# MDNS specifically for some reason gives Docker bridge interfaces it's scope,
# which means every DNS request waits for an answer... from every interface...
llmnr = "false";
extraConfig = "MulticastDNS=no";
dnssec = "false"; # DNSSEC breaks IPv6, for some reason :(
};
virtualisation.docker.daemon.settings = {
"experimental" = true;
"ipv6" = true;
"ip6tables" = true;
"fixed-cidr-v6" = "fc00:d0c:b1b1::/48";
"bip" = "172.17.0.1/24";
"default-address-pools" = [
{ base = "172.17.0.0/16"; size = 24; }
{ base = "fc00:d0c::/32"; size = 48; }
];
};
services.nginx.virtualHosts = {
"soc.rnrd.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyWebsockets = true;
proxyPass = "http://127.0.0.1:1111";
};
};
};
}
|