dotfiles/system/virtual/hardware-configuration.nix

35 lines
882 B
Nix
Raw Normal View History

2022-09-18 19:42:30 +00:00
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.extraModulePackages = [];
hardware.opengl.enable = true;
fileSystems."/" = {
device = "/dev/disk/by-uuid/8468529a-7215-4da3-af26-0c7f859e77f4";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/BBE3-1963";
fsType = "vfat";
};
swapDevices = [];
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}