nix/nixos/nc/hardware-configuration.nix
2024-11-18 20:10:08 -06:00

28 lines
698 B
Nix
Executable file

{
modulesPath,
lib,
config,
...
}: {
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
boot.loader.grub.device = "/dev/vda";
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi"];
boot.initrd.kernelModules = ["nvme"];
fileSystems."/" = {
device = "/dev/vda3";
fsType = "ext4";
};
boot = {
kernelModules = ["kvm-intel"];
tmp.cleanOnBoot = true;
};
swapDevices = [
{
device = "/swapfile";
size = 8 * 1024;
}
];
zramSwap.enable = false;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}