From c8600dbe4491d3e4770c759f53e0bcbb77d70a99 Mon Sep 17 00:00:00 2001 From: Lucy Date: Tue, 16 Sep 2025 00:17:48 +0200 Subject: [PATCH] ip --- hosts/server/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index c4ae827..d7c2630 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -36,11 +36,11 @@ }; }; - # Configuration for the second interface (e.g., enp2s0) - systemd.network.networks."20-wan" = { - matchConfig.Name = "enp2s0"; # Adjust to your second network interface name + systemd.network.networks."20-eno2np1" = { + matchConfig.Name = "eno2np1"; networkConfig = { - DHCP = "ipv4"; # Enable DHCP for this interface + Address = "192.168.42.144/24"; + Gateway = "192.168.42.1"; # Replace with your actual gateway }; };