1
0

hardware.nix 568 B

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