default.nix (569B)
1 2 { 3 lib, 4 pkgs, 5 config, 6 ... 7 }: 8 let 9 inherit (lib) mkOption types; 10 inherit (pkgs) liminix; 11 in 12 { 13 options = { 14 system.service.dhcp4c = { 15 client = mkOption { type = liminix.lib.types.serviceDefn; }; 16 }; 17 }; 18 config.system.service.dhcp4c = { 19 client = config.system.callService ./client.nix { 20 interface = mkOption { 21 type = liminix.lib.types.interface; 22 description = "interface to query for DHCP"; 23 }; 24 }; 25 }; 26 # this is already configured in modules/busybox.nix 27 config.programs.busybox.applets = [ "udhcpc" ]; 28 }