From 76e69f0bc85752a97d64001b001176746621c1e2 Mon Sep 17 00:00:00 2001 From: Random936 Date: Fri, 24 Apr 2026 20:10:17 -0400 Subject: [PATCH] Switching to .lan from .local to prevent mDNS issues --- bash-scripts | 2 +- config/ai.nix | 2 +- config/logging.nix | 8 ++++---- config/networking.nix | 26 ++++++++++++++------------ home/modules/zsh.nix | 2 +- 5 files changed, 21 insertions(+), 19 deletions(-) diff --git a/bash-scripts b/bash-scripts index bc58d71..c0a7449 160000 --- a/bash-scripts +++ b/bash-scripts @@ -1 +1 @@ -Subproject commit bc58d71ed5db0d910d7ba9432829e97f8e9535c2 +Subproject commit c0a7449e31b449a8205a1a26d3fc64651c0dfa48 diff --git a/config/ai.nix b/config/ai.nix index 62df8fd..d4c45e5 100644 --- a/config/ai.nix +++ b/config/ai.nix @@ -54,7 +54,7 @@ enable = true; virtualHosts = { # Jellyfin - "mindforge.randomctf.local" = { + "mindforge.randomctf.lan" = { extraConfig = '' access_log /var/log/nginx/access.mindforge.log; ''; diff --git a/config/logging.nix b/config/logging.nix index 8686aa0..3743b9f 100644 --- a/config/logging.nix +++ b/config/logging.nix @@ -23,7 +23,7 @@ settings.server = { http_addr = "127.0.0.1"; http_port = 3000; - domain = "grafana.randomctf.local"; + domain = "grafana.randomctf.lan"; }; }; @@ -31,19 +31,19 @@ enable = true; virtualHosts = { # Grafana - "grafana.randomctf.local" = { + "grafana.randomctf.lan" = { extraConfig = '' access_log /var/log/nginx/access.grafana.log; ''; locations."/".extraConfig = '' - proxy_set_header Host grafana.randomctf.local; + proxy_set_header Host grafana.randomctf.lan; proxy_pass http://localhost:3000/; ''; }; # Prometheus - "prometheus.randomctf.local" = { + "prometheus.randomctf.lan" = { extraConfig = '' access_log /var/log/nginx/access.prometheus.log; ''; diff --git a/config/networking.nix b/config/networking.nix index e63d5ca..ee51b52 100644 --- a/config/networking.nix +++ b/config/networking.nix @@ -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"; + }; } diff --git a/home/modules/zsh.nix b/home/modules/zsh.nix index 75a09ba..3acd829 100644 --- a/home/modules/zsh.nix +++ b/home/modules/zsh.nix @@ -48,7 +48,7 @@ r330-media = "ssh media@192.168.100.40"; r330-logging = "ssh logging@192.168.100.41"; mnemosyne = "ssh mnemosyne@192.168.100.42"; - mindforge = "ssh mindforge@mindforge.randomctf.local"; + mindforge = "ssh mindforge@mindforge.randomctf.lan"; # Nix Specific aliases update-config = "sudo nixos-rebuild switch --flake ~/dotfiles";