Switching to .lan from .local to prevent mDNS issues

This commit is contained in:
Random936
2026-04-24 20:10:17 -04:00
parent 75d6d62271
commit 76e69f0bc8
5 changed files with 21 additions and 19 deletions

View File

@@ -1,28 +1,30 @@
{ ip_address, hostname, open_ports, lib }: let
{ ip_address, hostname, open_ports, lib, }: let
gateway_ip = "192.168.100.1";
in {
# Configure hostname.
networking.hostName = hostname;
# Bug fix
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
# DNS config
networking.nameservers = [ gateway_ip ];
# Allowed Ports
networking.firewall.allowedTCPPorts = open_ports;
# Conigure a static IP address.
networking.useDHCP = false;
networking.useNetworkd = true;
networking.enableIPv6 = false;
# Bug fix
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
networking.defaultGateway = {
address = gateway_ip;
interface = "enp6s18";
};
networking.nameservers = [ gateway_ip ];
networking.firewall.allowedTCPPorts = open_ports;
networking.interfaces.enp6s18.ipv4.addresses = [
{
address = ip_address;
prefixLength = 24;
}
];
networking.defaultGateway = {
address = gateway_ip;
interface = "enp6s18";
};
}