Skip to content

Commit

Permalink
nixos: Make system.build a submodule with freeformType
Browse files Browse the repository at this point in the history
This allows the values below it to be specified as options, while
remaining compatible with existing code.
  • Loading branch information
roberth committed Jan 23, 2022
1 parent 3ac955a commit ccb85a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nixos/modules/system/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ in
options = {

system.build = mkOption {
internal = true;
default = {};
type = with types; lazyAttrsOf (uniq unspecified);
description = ''
Attribute set of derivations used to set up the system.
'';
type = types.submoduleWith {
modules = [{
freeformType = with types; lazyAttrsOf (uniq unspecified);
}];
};
};

};
Expand Down

0 comments on commit ccb85a5

Please sign in to comment.