nixos, dhcpd: make machines assignable

Changed files
+4 -3
nixos
modules
services
networking
+4 -3
nixos/modules/services/networking/dhcpd.nix
···
};
};
-
machineOpts = {...}: {
-
config = {
+
machineOpts = { ... }: {
+
+
options = {
hostName = mkOption {
type = types.str;
···
};
machines = mkOption {
-
type = types.listOf (types.submodule machineOpts);
+
type = with types; listOf (submodule machineOpts);
default = [];
example = [
{ hostName = "foo";