Merge pull request #19722 from ericsagnes/feat/nspawn-optionSet

nspawn module: optionSet -> submodule
This commit is contained in:
Tim Steinbach 2016-10-20 12:45:25 -04:00 committed by GitHub
commit 42093f3592

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.";
};