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