1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-27 18:06:13 +03:00
mobile-nixos/modules/initrd-base.nix

26 lines
443 B
Nix
Raw Normal View History

{ 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/hard-shutdown script.
'';
};
};
config.mobile.boot.stage-1 = {
extraUtils = with pkgs; lib.mkIf cfg.hard-reboot.enable [
hard-reboot
hard-shutdown
];
};
}