diff --git a/hosts/server/configuration.nix b/hosts/server/configuration.nix index feff849..bfe6460 100644 --- a/hosts/server/configuration.nix +++ b/hosts/server/configuration.nix @@ -28,20 +28,20 @@ # 192.168.42.5/24 # gw 192.168.42.1 - # Configuration for the first interface (e.g., enp1s0) - systemd.network.networks."10-lan" = { - matchConfig.Name = "enp1s0"; # Adjust to your first network interface name - networkConfig = { - Address = "192.168.42.5/24"; - Gateway = "192.168.42.1"; # Optional: Set a gateway if needed - }; - }; - - systemd.network.networks."20-eno2np1" = { + # Static IP for eno2np1 + systemd.network.networks."eno2np1" = { matchConfig.Name = "eno2np1"; networkConfig = { Address = "192.168.42.144/24"; - Gateway = "192.168.42.1"; # Replace with your actual gateway + Gateway = "192.168.42.1"; + }; + }; + + # Let eno1np0 use DHCP + systemd.network.networks."eno1np0" = { + matchConfig.Name = "eno1np0"; + networkConfig = { + DHCP = true; }; };