feat(example-qemu): enable dhcpc on wan interface

This commit is contained in:
catvayor 2024-09-13 14:08:14 +02:00
parent 9eeb7c017a
commit 2542adcc48
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -18,6 +18,14 @@ in rec {
family = "inet"; address ="10.3.0.1"; prefixLength = 16;
};
services.dhcpc = svc.network.dhcp.client.build {
interface = config.hardware.networkInterfaces.wan;
# don't start DHCP until the hostname is configured,
# so it can identify itself to the DHCP server
dependencies = [ config.services.hostname ];
};
services.sshd = svc.ssh.build { };
users.root = {