1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/modules/hardware.nix
Samuel Dionne-Riel 95ae031200 hardware: init module with HAL for reboot modes
This will be used by the boot GUI to only show relevant reboot options.

We might add other HAL-ish things in there.

Note that this is all internal stuff :)
2020-10-15 22:08:21 -04:00

24 lines
494 B
Nix

{ config, lib, pkgs, ... }:
let
inherit (lib) types;
in
{
options = {
# All of this should stay internal.
mobile.HAL = {
boot = {
rebootModes = lib.mkOption {
type = types.listOf types.str;
internal = true;
default = [];
description = ''
Identifiers known by the boot menu to provide reboot options
that are hardware-dependent. E.g. reboot to bootloader.
'';
};
};
};
};
}