nspawn module: optionSet -> submodule

This commit is contained in:
Eric Sagnes 2016-10-21 01:31:54 +09:00
parent 6adde2a5d9
commit 87318e9820

View File

@ -41,6 +41,7 @@ let
]; ];
instanceOptions = { instanceOptions = {
options = {
execConfig = mkOption { execConfig = mkOption {
default = {}; default = {};
@ -77,6 +78,7 @@ let
<manvolnum>5</manvolnum></citerefentry> for details. <manvolnum>5</manvolnum></citerefentry> for details.
''; '';
}; };
};
}; };
@ -99,8 +101,7 @@ in {
systemd.nspawn = mkOption { systemd.nspawn = mkOption {
default = {}; default = {};
type = types.attrsOf types.optionSet; type = with types; attrsOf (submodule instanceOptions);
options = [ instanceOptions ];
description = "Definition of systemd-nspawn configurations."; description = "Definition of systemd-nspawn configurations.";
}; };