mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2025-01-07 12:11:28 +03:00
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
|
||
|
];
|
||
|
};
|
||
|
}
|