1
0

hardware.nix 572 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. lib,
  3. modulesPath,
  4. ...
  5. }:
  6. {
  7. imports = [
  8. (modulesPath + "/installer/scan/not-detected.nix")
  9. (modulesPath + "/profiles/qemu-guest.nix")
  10. ./disk.nix
  11. ];
  12. boot.loader.grub = {
  13. efiSupport = true;
  14. efiInstallAsRemovable = true;
  15. };
  16. boot.initrd.availableKernelModules = [
  17. "ata_piix"
  18. "uhci_hcd"
  19. "virtio_pci"
  20. "virtio_blk"
  21. ];
  22. boot.initrd.kernelModules = [ ];
  23. boot.kernelModules = [ "kvm-intel" ];
  24. boot.extraModulePackages = [ ];
  25. nixpkgs.hostPlatform.system = "x86_64-linux";
  26. networking.useDHCP = lib.mkDefault true;
  27. }