home lab init
This commit is contained in:
commit
7278922625
65 changed files with 27336 additions and 0 deletions
18
nixos/hosts/traefik/networking.nix
Normal file
18
nixos/hosts/traefik/networking.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue