flake/systems/vesuvio/hardware-configuration.nix

32 lines
761 B
Nix
Raw Normal View History

2024-03-24 14:02:03 +01:00
{modulesPath, ...}: {
imports = ["${modulesPath}/profiles/qemu-guest.nix"];
2024-03-24 14:02:03 +01:00
boot = {
# arm so we can use systemd-boot
loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
2024-03-24 14:02:03 +01: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"];
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";
};
}