add service fir dhcp v4 client
This commit is contained in:
parent
31f0213b6f
commit
00c8ea66ea
3 changed files with 65 additions and 7 deletions
|
@ -20,6 +20,14 @@ in {
|
|||
description = "network interface address";
|
||||
type = liminix.lib.types.serviceDefn;
|
||||
};
|
||||
dhcp = {
|
||||
client = mkOption {
|
||||
# this needs to move to its own service as it has
|
||||
# busybox config
|
||||
description = "DHCP v4 client";
|
||||
type = liminix.lib.types.serviceDefn;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
config = {
|
||||
|
@ -49,6 +57,12 @@ in {
|
|||
type = types.ints.between 0 128;
|
||||
};
|
||||
};
|
||||
dhcp.client = liminix.callService ./dhcpc.nix {
|
||||
interface = mkOption {
|
||||
type = liminix.lib.types.service;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue