ready for runners
This commit is contained in:
parent
fc9971ddc9
commit
7dd5043b5d
49 changed files with 2569 additions and 1085 deletions
19
nixos/hosts/dns/networking.nix
Normal file
19
nixos/hosts/dns/networking.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
networking.hostName = "dns";
|
||||
# networking.useHostResolvConf = false;
|
||||
# networking.interfaces.eth0.useDHCP = true;
|
||||
networking.interfaces.eth0.ipv4.addresses = [{
|
||||
address = "192.168.1.53";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
|
||||
networking.defaultGateway = "192.168.1.1"; # your router
|
||||
networking.nameservers = [ "8.8.8.8" ]; # fallback resolvers
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 53 67 80 443 ];
|
||||
networking.firewall.allowedUDPPorts = [ 53 67 ];
|
||||
|
||||
networking.hosts = {
|
||||
"192.168.1.53" = [ "dns" "dns.lab" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue