From cd81bc3cf71fe21f5bec00e9398c1e266c90c84a Mon Sep 17 00:00:00 2001 From: Tristan Druyen Date: Mon, 18 Sep 2023 12:16:07 +0200 Subject: [PATCH] Add network dongle ip config Signed-off-by: Tristan Druyen --- hardware.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/hardware.nix b/hardware.nix index 2c091b4..d29f2a0 100644 --- a/hardware.nix +++ b/hardware.nix @@ -40,8 +40,24 @@ networking = { useDHCP = lib.mkDefault true; - interfaces.enp1s0.useDHCP = lib.mkDefault true; - interfaces.wlp3s0.useDHCP = lib.mkDefault true; + interfaces = { + enp1s0.useDHCP = lib.mkDefault true; + wlp3s0.useDHCP = lib.mkDefault true; + enp5s0f4u1u1c2 = { + useDHCP = false; + ipv4.addresses = [ + { + address = "192.168.0.21"; + prefixLength = 24; + } + ]; + }; + }; + + defaultGateway = { + address = "192.168.0.5"; + interface = "enp5s0f4u1u1c2"; + }; }; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";