nixos: Make system.build a submodule with freeformType

This allows the values below it to be specified as options, while
remaining compatible with existing code.
This commit is contained in:
Robert Hensing 2022-01-20 15:04:08 +01:00
parent 3ac955acf4
commit ccb85a53b6

View file

@ -6,12 +6,15 @@ in
options = { options = {
system.build = mkOption { system.build = mkOption {
internal = true;
default = {}; default = {};
type = with types; lazyAttrsOf (uniq unspecified);
description = '' description = ''
Attribute set of derivations used to set up the system. Attribute set of derivations used to set up the system.
''; '';
type = types.submoduleWith {
modules = [{
freeformType = with types; lazyAttrsOf (uniq unspecified);
}];
};
}; };
}; };