forked from DGNum/liminix
feat(example-qemu): enable dhcpc on wan interface
All checks were successful
build liminix / build_vm_qemu_mips (pull_request) Successful in 50s
All checks were successful
build liminix / build_vm_qemu_mips (pull_request) Successful in 50s
This commit is contained in:
parent
d8d512ab31
commit
20776327cd
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ in rec {
|
||||||
family = "inet"; address ="10.3.0.1"; prefixLength = 16;
|
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 { };
|
services.sshd = svc.ssh.build { };
|
||||||
|
|
||||||
users.root = {
|
users.root = {
|
||||||
|
|
Loading…
Reference in a new issue