nixos-conf/shared/hardware/vm.nix

26 lines
480 B
Nix
Raw Normal View History

{ lib, modulesPath, ... }:
2025-06-04 23:50:16 +03:00
{
services.qemuGuest.enable = true;
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [
"uhci_hcd"
"ehci_pci"
"ahci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
2025-06-04 23:50:16 +03:00
}