2024-03-24 14:02:03 +01:00
|
|
|
{modulesPath, ...}: {
|
2024-08-17 18:50:01 +02:00
|
|
|
imports = ["${modulesPath}/profiles/qemu-guest.nix"];
|
2024-03-24 14:02:03 +01:00
|
|
|
|
|
|
|
boot = {
|
2024-08-17 18:50:01 +02:00
|
|
|
# arm so we can use systemd-boot
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
2024-03-24 14:02:03 +01:00
|
|
|
};
|
|
|
|
|
2024-08-17 18:50:01 +02:00
|
|
|
# set console because the console defaults to serial and
|
|
|
|
# initialize the display early to get a complete log.
|
|
|
|
# this is required for typing in LUKS passwords on boot too.
|
|
|
|
kernelParams = ["console=tty"];
|
|
|
|
|
2024-03-24 14:02:03 +01:00
|
|
|
initrd = {
|
|
|
|
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
|
2024-08-17 18:50:01 +02:00
|
|
|
kernelModules = ["nvme" "virtio_gpu"];
|
2024-03-24 14:02:03 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/6FB6-65E7";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/sda1";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
}
|