nix-config/hosts/containers/gitea/modules/networking.nix

19 lines
476 B
Nix
Raw Normal View History

2022-01-16 13:26:37 +01:00
{ zentralwerk, config, pkgs, ... }:
2021-10-02 20:28:30 +02:00
{
networking = {
hostName = "gitea";
useDHCP = false;
interfaces.eth0 = {
useDHCP = false;
ipv4.addresses = [ {
2022-01-16 13:26:37 +01:00
address = config.c3d2.hosts."${config.networking.hostName}".ip4;
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
} ];
2021-10-02 20:28:30 +02:00
};
defaultGateway = "172.20.73.1";
nameservers = [ "172.20.73.8" "9.9.9.9" ];
firewall.allowedTCPPorts = [ 80 443 2222 ];
};
}