1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-27 01:44:41 +03:00
mobile-nixos/modules/boot-initrd.nix
Samuel Dionne-Riel 6095b623f6 Adds qemu-x86_64 device.
Network doesn't work :/
2018-06-17 20:55:34 -04:00

50 lines
1.3 KiB
Nix

{ config, lib, pkgs, ... }:
with lib;
{
options.mobile.boot = {
stage-1.extraUtils = mkOption {
type = types.listOf (types.either types.attrs types.package);
description = ''
Additional packages to be included inside stage-1.
Do note that *special manipulation* happens and may
not be compatible with everything.
The format for extra commands is:
`{ package = _package_; extraCommand = _extraCommand_ }`
Where extraCommand is executed at build time, generally
to fix the package for stage-1 use.
'';
};
stage-1.initFramebuffer = mkOption {
type = types.lines;
default = "";
description = ''
Commands ran particularly early for setting the framebuffer
and framebuffer devices correctly.
It is expected that after these commands the framebuffer
has been made available.
'';
};
stage-1.contents = mkOption {
type = types.listOf types.attrs;
default = [];
description = ''
Additional files for the initrd.
See `makeInitrd` for use of `contents`.
'';
};
stage-1.init = mkOption {
type = types.lines;
description = ''
Lines that will build out the /init script.
'';
};
};
}