Merge pull request #19722 from ericsagnes/feat/nspawn-optionSet
nspawn module: optionSet -> submodule
This commit is contained in:
commit
42093f3592
@ -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.";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user