Revert "LoutreOS: replace dhcpd4 with networkd"
This reverts commit 0037f3fd6d
.
This commit is contained in:
parent
0037f3fd6d
commit
1612f543dc
@ -106,26 +106,6 @@
|
||||
};
|
||||
|
||||
systemd.network.networks = {
|
||||
"40-eno2" = {
|
||||
networkConfig = {
|
||||
DHCPServer = true;
|
||||
};
|
||||
dhcpServerConfig = {
|
||||
PoolOffset = 25599;
|
||||
PoolSize = 25600;
|
||||
DNS = [ "89.234.141.66" "80.67.169.12" "80.67.169.40" ];
|
||||
};
|
||||
dhcpServerStaticLeases = [
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "50:c7:bf:b6:b8:ef"; Address = "10.30.50.7"; }; } # HS110
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "ac:1f:6b:4b:01:15"; Address = "10.30.1.1"; }; } # IPMI
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "b4:2e:99:ed:24:26"; Address = "10.30.50.1"; }; } # paul-fixe
|
||||
|
||||
#ESPHome
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "e0:98:06:85:e9:ce"; Address = "10.30.40.1"; }; } # salonled
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "e0:98:06:86:38:fc"; Address = "10.30.40.2"; }; } # bureauled
|
||||
{ dhcpServerStaticLeaseConfig = { MACAddress = "50:02:91:78:be:be"; Address = "10.30.40.3"; }; } # guirlande
|
||||
];
|
||||
};
|
||||
"40-bouygues" = {
|
||||
dhcpV4Config.RouteMetric = 1;
|
||||
dhcpV6Config = {
|
||||
@ -141,6 +121,29 @@
|
||||
"40-enp0s21u2".dhcpV4Config.RouteMetric = 1024;
|
||||
};
|
||||
|
||||
services.dhcpd4 = {
|
||||
enable = true;
|
||||
interfaces = [ "eno2" ];
|
||||
machines = [
|
||||
{ ethernetAddress = "50:c7:bf:b6:b8:ef"; hostName = "HS110"; ipAddress = "10.30.50.7"; }
|
||||
{ ethernetAddress = "ac:1f:6b:4b:01:15"; hostName = "IPMI"; ipAddress = "10.30.1.1"; }
|
||||
{ ethernetAddress = "b4:2e:99:ed:24:26"; hostName = "paul-fixe"; ipAddress = "10.30.50.1"; }
|
||||
|
||||
#ESPHome
|
||||
{ ethernetAddress = "e0:98:06:85:e9:ce"; hostName = "salonled"; ipAddress = "10.30.40.1"; }
|
||||
{ ethernetAddress = "e0:98:06:86:38:fc"; hostName = "bureauled"; ipAddress = "10.30.40.2"; }
|
||||
{ ethernetAddress = "50:02:91:78:be:be"; hostName = "guirlande"; ipAddress = "10.30.40.3"; }
|
||||
];
|
||||
extraConfig = ''
|
||||
option domain-name-servers 89.234.141.66, 80.67.169.12, 80.67.169.40;
|
||||
option subnet-mask 255.255.0.0;
|
||||
subnet 10.30.0.0 netmask 255.255.0.0 {
|
||||
option routers 10.30.0.1;
|
||||
range 10.30.100.0 10.30.200.0;
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import ../../overlays/transmission.nix)
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user