From fa367c2d028a4f63c4fba9fe498f55288c98cea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Mon, 27 Feb 2017 10:47:37 +0100 Subject: [PATCH] nixos, dhcpd: make machines assignable --- nixos/modules/services/networking/dhcpd.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/dhcpd.nix b/nixos/modules/services/networking/dhcpd.nix index 86bcaa96f345..2eac6dfec5b7 100644 --- a/nixos/modules/services/networking/dhcpd.nix +++ b/nixos/modules/services/networking/dhcpd.nix @@ -60,8 +60,9 @@ let }; }; - machineOpts = {...}: { - config = { + machineOpts = { ... }: { + + options = { hostName = mkOption { type = types.str; @@ -156,7 +157,7 @@ let }; machines = mkOption { - type = types.listOf (types.submodule machineOpts); + type = with types; listOf (submodule machineOpts); default = []; example = [ { hostName = "foo";