2
0

update examples for dhcp4c rename

This commit is contained in:
2025-11-04 20:42:23 +00:00
parent 46dcf71e16
commit d9f91e4820
7 changed files with 18 additions and 10 deletions
+2 -1
View File
@@ -33,6 +33,7 @@ rec {
../modules/usb.nix
../modules/watchdog
../modules/mount
../modules/dhcp4c
];
hostname = "arhcive";
@@ -40,7 +41,7 @@ rec {
let
iface = config.hardware.networkInterfaces.lan;
in
svc.network.dhcp.client.build {
svc.dhcp4c.client.build {
interface = iface;
dependencies = [ config.services.hostname ];
};
+2 -1
View File
@@ -5,6 +5,7 @@ let
in
rec {
imports = [
../modules/dhcp4c
../modules/network
../modules/ssh
../modules/vlan
@@ -20,7 +21,7 @@ rec {
hostname = "hello";
services.dhcpc = svc.network.dhcp.client.build {
services.dhcpc = svc.dhcp4c.client.build {
interface = config.hardware.networkInterfaces.lan;
# don't start DHCP until the hostname is configured,
+2 -1
View File
@@ -61,6 +61,7 @@ rec {
../modules/ntp
../modules/vlan
../modules/bridge
../modules/dhcp4c
];
hostname = "zyxel";
@@ -93,7 +94,7 @@ rec {
let
iface = services.int;
in
svc.network.dhcp.client.build { interface = iface; };
svc.dhcp4c.client.build { interface = iface; };
services.defaultroute4 = svc.network.route.build {
via = "$(output ${services.dhcpv4} address)";
+2 -1
View File
@@ -28,6 +28,7 @@ rec {
../modules/outputs/ubimage.nix
../modules/outputs/jffs2.nix
../modules/outputs/ext4fs.nix
../modules/dhcp4c
];
kernel.config = {
@@ -43,7 +44,7 @@ rec {
hostname = "liminix-recovery";
services.dhcpc = svc.network.dhcp.client.build {
services.dhcpc = svc.dhcp4c.client.build {
interface = config.hardware.networkInterfaces.lan2;
# don't start DHCP until the hostname is configured,
+3 -1
View File
@@ -62,6 +62,8 @@ rec {
../modules/health-check
../modules/secrets
../modules/profiles/gateway.nix
../modules/dhcp4c
];
hostname = "thing";
@@ -201,7 +203,7 @@ rec {
};
};
services.bootstrap-dhcpc = svc.network.dhcp.client.build {
services.bootstrap-dhcpc = svc.dhcp4c.client.build {
interface = config.services.wwan;
dependencies = [ config.services.hostname ];
};
+5 -4
View File
@@ -16,9 +16,10 @@ rec {
../modules/wlan.nix
../modules/hostapd
../modules/bridge
../modules/dhcp4c
../modules/ext4fs.nix
../modules/tftpboot.nix
../modules/outputs/ext4fs.nix
../modules/outputs/tftpboot.nix
];
rootfsType = "ext4";
@@ -29,7 +30,7 @@ rec {
# then these dummy values are fine
ipaddr = "10.0.0.8"; # my address
serverip = "10.0.0.1"; # build machine or other tftp server
loadAddress = lim.parseInt "0x40000800";
# loadAddress = lim.parseInt "0x40000800";
};
hostname = "omnia";
@@ -91,7 +92,7 @@ rec {
ifname = "int";
};
services.dhcpc = svc.network.dhcp.client.build {
services.dhcpc = svc.dhcp4c.client.build {
interface = services.int;
dependencies = [ config.services.hostname ];
};
+2 -1
View File
@@ -9,13 +9,14 @@ rec {
./modules/network
./modules/ntp
./modules/vlan
../modules/dhcp4c
];
services.dhcpv4 =
let
iface = svc.network.link.build { ifname = "eth1"; };
in
svc.network.dhcp.client.build { interface = iface; };
svc.dhcp4c.client.build { interface = iface; };
services.defaultroute4 = svc.network.route.build {
via = "$(output ${services.dhcpv4} ip)";