From 51404a9f90e0ae908e370224a726448ba0e149ae Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Mon, 20 Dec 2021 08:34:21 +0100 Subject: [PATCH] set DHCP parameters --- systems/LoutreOS/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/systems/LoutreOS/configuration.nix b/systems/LoutreOS/configuration.nix index 67eb71c..90280ff 100644 --- a/systems/LoutreOS/configuration.nix +++ b/systems/LoutreOS/configuration.nix @@ -76,6 +76,7 @@ { address = "10.40.0.1"; prefixLength = 16; } ]; }; + enp0s21u2.useDHCP = true; }; # NAT bouygues <-> eno2 @@ -110,6 +111,11 @@ }; }; + systemd.network.networks = { + "40-bouygues".dhcpV4Config.RouteMetric = 1; + "40-enp0s21u2".dhcpV4Config.RouteMetric = 1024; + }; + services.dhcpd4 = { enable = true; interfaces = [ "eno2" "chinoiseries" ];