1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 19:23:01 +03:00
mobile-nixos/modules/initrd-base.nix
Samuel Dionne-Riel 2ef6c5f988 initrd: Implements messages redirection.
This allows outputting the /init process' messages to multiple
locations, including /dev/console, any additional tty and files.
2018-06-18 21:43:58 -04:00

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
];
};
}