Skip to content

Commit ccb85a5

Browse files
committed
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.
1 parent 3ac955a commit ccb85a5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

nixos/modules/system/build.nix

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ in
66
options = {
77

88
system.build = mkOption {
9-
internal = true;
109
default = {};
11-
type = with types; lazyAttrsOf (uniq unspecified);
1210
description = ''
1311
Attribute set of derivations used to set up the system.
1412
'';
13+
type = types.submoduleWith {
14+
modules = [{
15+
freeformType = with types; lazyAttrsOf (uniq unspecified);
16+
}];
17+
};
1518
};
1619

1720
};

0 commit comments

Comments
 (0)