1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-13 12:35:48 +03:00
mobile-nixos/modules/outputs.nix

32 lines
725 B
Nix
Raw Normal View History

2021-08-27 06:50:00 +03:00
{ config, lib, ... }:
let
inherit (lib)
mkOption
;
in
{
options = {
mobile = {
outputs = {
default = mkOption {
description = lib.mdDoc ''
2021-08-27 06:50:00 +03:00
Default most likely desired output for this Mobile NixOS build.
The default depends on the system type in use.
'';
# Mark internal so that the documentation does not expose a bogus description.
internal = true;
2021-08-27 06:50:00 +03:00
};
toplevel = mkOption {
description = lib.mdDoc ''
First-class attribute to refer to `config.system.build.toplevel`.
'';
internal = true;
default = config.system.build.toplevel;
};
2021-08-27 06:50:00 +03:00
};
};
};
}