Compare commits

...

2 commits

Author SHA1 Message Date
fruchti 451605c50d Emitter: E-mail on backup failure 2023-03-26 14:27:23 +02:00
fruchti 2c32c0c1ab Emitter: Use static IP addresses
Allows for IPv6, since DHCPv6 is not available at its location.
2023-03-26 14:25:23 +02:00

View file

@ -10,8 +10,60 @@
networking.hostName = "Emitter"; networking.hostName = "Emitter";
networking.tempAddresses = "disabled";
networking.useDHCP = false; networking.useDHCP = false;
networking.interfaces.ens3.useDHCP = true; networking = {
defaultGateway = {
address = "2.59.133.1";
interface = "ens3";
};
defaultGateway6 = {
address = "2a0d:5940:7::1";
interface = "ens3";
};
nameservers = [
"9.9.9.10"
"8.8.8.8"
"2606:4700:4700::1111"
"2001:4860:4860::8888"
];
interfaces.ens3 = {
ipv4 = {
addresses = [
{
address = "2.59.133.12";
prefixLength = 24;
}
];
routes = [
{
address = "2.59.133.0";
prefixLength = 24;
via = "2.59.133.1";
}
];
};
ipv6 = {
addresses = [
{
address = "2a0d:5940:7:16f:216:3cff:fe63:9a54";
prefixLength = 64;
}
{
address = "fe80::216:3cff:fe63:9a54";
prefixLength = 64;
}
];
routes = [
{
address = "2a0d:5940:7:16f:216:3cff:fe63:9a54";
prefixLength = 64;
via = "2a0d:5940:7::1";
}
];
};
};
};
i18n.defaultLocale = "de_DE.UTF-8"; i18n.defaultLocale = "de_DE.UTF-8";
console.keyMap = "de"; console.keyMap = "de";
@ -64,6 +116,8 @@
sslKeyPasswordFile = "/secrets/burp_ssl_key_password"; sslKeyPasswordFile = "/secrets/burp_ssl_key_password";
}; };
}; };
services.statusEmail.enable = true;
systemd.services.burp-client.unitConfig.OnFailure = "status-email@%n.service";
# This value determines the NixOS release from which the default # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions