2024-11-22 14:16:10 +01:00
|
|
|
{ lib, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
|
|
|
|
|
|
|
boot = {
|
2024-11-22 15:46:51 +01:00
|
|
|
loader.systemd-boot.enable = true;
|
|
|
|
initrd.kernelModules = [ ];
|
2024-11-22 14:16:10 +01:00
|
|
|
kernelModules = [ ];
|
|
|
|
extraModulePackages = [ ];
|
2024-11-22 15:46:51 +01:00
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"ata_piix"
|
|
|
|
"uhci_hcd"
|
|
|
|
"virtio_pci"
|
|
|
|
"virtio_scsi"
|
|
|
|
"sd_mod"
|
|
|
|
"sr_mod"
|
|
|
|
];
|
2024-11-22 14:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
2024-11-22 15:46:51 +01:00
|
|
|
device = "/dev/disk/by-partlabel/disk-sda-root";
|
2024-11-22 14:16:10 +01:00
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
2024-11-22 15:46:51 +01:00
|
|
|
device = "/dev/disk/by-partlabel/disk-sda-ESP";
|
2024-11-22 14:16:10 +01:00
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2024-11-22 15:46:51 +01:00
|
|
|
networking.useDHCP = lib.mkDefault false;
|
2024-11-22 14:16:10 +01:00
|
|
|
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
|
|
}
|