diff options
author | Edward Tjörnhammar <ed@cflags.cc> | 2017-02-27 10:47:37 +0100 |
---|---|---|
committer | Edward Tjörnhammar <ed@cflags.cc> | 2017-02-27 10:52:21 +0100 |
commit | fa367c2d028a4f63c4fba9fe498f55288c98cea5 (patch) | |
tree | 51a94f61f9ef2c41dbe6b3af53e70381df7a9d23 /nixos/modules/services/networking/dhcpd.nix | |
parent | 136c249e0ba8890c71216373d79274b78e167d06 (diff) | |
download | nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar.gz nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar.bz2 nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar.lz nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar.xz nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.tar.zst nixpkgs-fa367c2d028a4f63c4fba9fe498f55288c98cea5.zip |
nixos, dhcpd: make machines assignable
Diffstat (limited to 'nixos/modules/services/networking/dhcpd.nix')
-rw-r--r-- | nixos/modules/services/networking/dhcpd.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nixos/modules/services/networking/dhcpd.nix b/nixos/modules/services/networking/dhcpd.nix index 86bcaa96f34..2eac6dfec5b 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"; |