From d958621a795fcd94d52b3e4c5085ddfd0e2a3bbb Mon Sep 17 00:00:00 2001 From: Random936 Date: Sat, 11 Jan 2025 19:38:55 -0800 Subject: [PATCH] Updated networking for r330-logging --- config/logging.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/config/logging.nix b/config/logging.nix index cc6a104..1356ac3 100644 --- a/config/logging.nix +++ b/config/logging.nix @@ -3,21 +3,15 @@ imports = [ ../hardware/logging.nix ./headless.nix + (import ./networking.nix { + hostname = "r330-logging"; + ip_address = "192.168.100.41"; + open_ports = []; + inherit lib; + }) ]; users.users.logging = import ./user.nix; - networking.hostName = "r330-logging"; - - # Conigure a static IP address. - networking.defaultGateway = "192.168.100.1"; - networking.nameservers = [ "192.168.100.1" ]; - #networking.firewall.allowedTCPPorts = [ ]; - networking.interfaces.ens18.ipv4.addresses = [ - { - address = "192.168.100.41"; - prefixLength = 24; - } - ]; environment.systemPackages = with pkgs; [ suricata