feat(vesuvio): tweak things and use systemd-boot

This commit is contained in:
uku 2024-08-17 18:50:01 +02:00
parent 7399f8bbc0
commit d2e32f8b38
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
3 changed files with 22 additions and 8 deletions

View file

@ -1,16 +1,21 @@
{modulesPath, ...}: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
imports = ["${modulesPath}/profiles/qemu-guest.nix"];
boot = {
loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
device = "nodev";
# arm so we can use systemd-boot
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
# 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"];
initrd = {
availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront"];
kernelModules = ["nvme"];
kernelModules = ["nvme" "virtio_gpu"];
};
};