nspawn module: optionSet -> submodule
This commit is contained in:
parent
6adde2a5d9
commit
87318e9820
@ -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.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user