18 lines
351 B
Nix
18 lines
351 B
Nix
{ config, lib, pkgs, ... }: {
|
|
|
|
networking = {
|
|
hostName = "traefik";
|
|
interfaces.eth0 = {
|
|
ipv4.addresses = [{
|
|
address = "192.168.1.171";
|
|
prefixLength = 24;
|
|
}];
|
|
};
|
|
firewall.allowedTCPPorts = [ 80 443 8080 8082 ];
|
|
|
|
defaultGateway = {
|
|
address = "192.168.1.1";
|
|
interface = "eth0";
|
|
};
|
|
};
|
|
}
|