forked from CCCHH/nix-infra
June
c54b655b0e
Do that so we can have monitoring for them via prometheus, alertmanager and grafana. Also add a local ip for the git host for PVE firewalling.
36 lines
779 B
Nix
36 lines
779 B
Nix
# Sources for this configuration:
|
|
# - https://nixos.wiki/wiki/Networking
|
|
|
|
{ ... }:
|
|
|
|
{
|
|
networking = {
|
|
interfaces.net0 = {
|
|
ipv4.addresses = [
|
|
{
|
|
address = "212.12.51.136";
|
|
prefixLength = 28;
|
|
}
|
|
{
|
|
address = "172.31.17.154";
|
|
prefixLength = 25;
|
|
}
|
|
];
|
|
ipv6.addresses = [
|
|
{
|
|
address = "2a00:14b0:f000:23:51:136::1";
|
|
prefixLength = 64;
|
|
}
|
|
];
|
|
};
|
|
defaultGateway = "212.12.51.129";
|
|
defaultGateway6 = "2a00:14b0:f000:23::1";
|
|
nameservers = [ "212.12.50.158" "192.76.134.90" ];
|
|
search = [ "hamburg.ccc.de" ];
|
|
};
|
|
|
|
systemd.network.links."10-net0" = {
|
|
matchConfig.MACAddress = "92:7B:E6:12:A4:FA";
|
|
linkConfig.Name = "net0";
|
|
};
|
|
}
|