Modules that do not depend on e.g. toplevel should not have to include it just to set things in `system.build`. As a general rule, this keeps tests simple, usage flexible and evaluation fast. While one module is insignificant, consistency and good practices are.
19 lines
312 B
Nix
19 lines
312 B
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
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.
|
|
'';
|
|
};
|
|
|
|
};
|
|
}
|