mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-15 19:23:01 +03:00
2ef6c5f988
This allows outputting the /init process' messages to multiple locations, including /dev/console, any additional tty and files.
25 lines
409 B
Nix
25 lines
409 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.mobile.boot.stage-1;
|
|
in
|
|
{
|
|
options.mobile.boot.stage-1.hard-reboot = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = true;
|
|
description = ''
|
|
Adds hard-reboot script.
|
|
'';
|
|
};
|
|
};
|
|
|
|
config.mobile.boot.stage-1 = {
|
|
extraUtils = with pkgs; lib.mkIf cfg.hard-reboot.enable [
|
|
hard-reboot
|
|
];
|
|
};
|
|
}
|