nixos, dhcpd: make machines assignable

This commit is contained in:
Edward Tjörnhammar 2017-02-27 10:47:37 +01:00
parent 136c249e0b
commit fa367c2d02
No known key found for this signature in database
GPG Key ID: 7B82CE4A866B6845

View File

@ -60,8 +60,9 @@ let
}; };
}; };
machineOpts = {...}: { machineOpts = { ... }: {
config = {
options = {
hostName = mkOption { hostName = mkOption {
type = types.str; type = types.str;
@ -156,7 +157,7 @@ let
}; };
machines = mkOption { machines = mkOption {
type = types.listOf (types.submodule machineOpts); type = with types; listOf (submodule machineOpts);
default = []; default = [];
example = [ example = [
{ hostName = "foo"; { hostName = "foo";