1
0

hardware.nix 566 B

123456789101112131415161718192021222324252627
  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 = [
  13. "ata_piix"
  14. "uhci_hcd"
  15. "virtio_pci"
  16. "virtio_blk"
  17. ];
  18. boot.initrd.kernelModules = [ ];
  19. boot.kernelModules = [ "kvm-intel" ];
  20. boot.extraModulePackages = [ ];
  21. nixpkgs.hostPlatform.system = "x86_64-linux";
  22. networking.useDHCP = lib.mkDefault true;
  23. }