hardware.nix 548 B

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