1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-15 11:03:37 +03:00
mobile-nixos/devices/qemu-x86_64/default.nix
2020-05-24 20:13:07 -04:00

64 lines
1.1 KiB
Nix

{ config, lib, pkgs, ... }:
{
mobile.device.name = "qemu-x86_64";
mobile.device.identity = {
name = "(x86_64)";
manufacturer = "QEMU";
};
mobile.hardware = {
soc = "generic-x86_64";
# For the QEMU device, this *sets* the display size.
screen = {
width = 1080;
height = 1920;
};
ram = 1024 * 2;
};
boot.kernelParams = [
"console=tty1"
"console=ttyS0"
"vt.global_cursor_default=0"
"quiet"
];
mobile.system.type = "qemu-startscript";
mobile.boot.stage-1 = {
kernel = {
package = pkgs.linuxPackages_5_4.kernel;
modular = true;
modules = [
# Disk images
"ata_piix"
"sd_mod"
# Networking
"e1000"
# Keyboard
"hid_generic"
"pcips2" "atkbd" "i8042"
# Mouse
"mousedev"
# Input within X11
"uinput" "evdev"
# USB
"usbcore" "usbhid" "ehci_pci" "ehci_hcd"
# x86 RTC needed by the stage 2 init script.
"rtc_cmos"
# Video
"bochs_drm"
];
};
};
}