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
Samuel Dionne-Riel 0bb69c85d6 treewide: Add lib.mdDoc prefix to option descriptions
Used this elegant context-aware mass-edit tool:

```
 $ find . -name '*.nix' -exec sed -i -e "s/description = ''/description = lib.mdDoc ''/g" '{}' ';'
```
2023-03-15 01:02:25 -04:00

32 lines
725 B
Nix

{ config, lib, ... }:
let
inherit (lib)
mkOption
;
in
{
options = {
mobile = {
outputs = {
default = mkOption {
description = lib.mdDoc ''
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;
};
toplevel = mkOption {
description = lib.mdDoc ''
First-class attribute to refer to `config.system.build.toplevel`.
'';
internal = true;
default = config.system.build.toplevel;
};
};
};
};
}