nixfiles/hosts/dyon/configuration.nix

42 lines
921 B
Nix
Raw Permalink Normal View History

2021-03-13 15:32:44 +01:00
{ ... }: {
imports = [
./hardware-configuration.nix
../../common/common.nix
../../common/netdata.nix
2021-06-14 16:28:56 +02:00
./nginx.nix
2021-03-13 15:32:44 +01:00
./wireguard.nix
2021-06-14 16:34:49 +02:00
./coturn.nix
2021-03-13 15:32:44 +01:00
];
networking.hostName = "dyon";
networking.interfaces.ens3.ipv4.addresses = [ {
address = "168.119.153.98";
prefixLength = 32;
}];
networking.interfaces.ens3.ipv6.addresses = [{
address = "2a01:4f8:c010:61dc::1";
prefixLength = 64;
}];
networking.defaultGateway6 = {
address = "fe80::1";
interface = "ens3";
};
networking.defaultGateway = { address = "172.31.1.1"; interface = "ens3"; };
clerie.monitoring = {
enable = true;
2021-04-12 14:03:26 +02:00
id = "35";
2021-03-13 15:32:44 +01:00
privKeyFile = "/run/keys/wg-dyon_priv";
pubkey = "4faakn5yfzukxRwo79iTawag4jzAFkErXHLeEvtoLCc=";
};
clerie.nginx-port-forward = {
enable = true;
tcpPorts."2222" = {
host = "geon.net.entr0py.de";
port = 2222;
};
};
}