summaryrefslogtreecommitdiff
path: root/common/hardware.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/hardware.nix')
-rw-r--r--common/hardware.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/common/hardware.nix b/common/hardware.nix
new file mode 100644
index 0000000..16db18b
--- /dev/null
+++ b/common/hardware.nix
@@ -0,0 +1,16 @@
+{
+ lib,
+ modulesPath,
+ ...
+}: {
+ imports = [
+ (modulesPath + "/profiles/qemu-guest.nix")
+ ];
+
+ boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk"];
+ boot.initrd.kernelModules = [];
+ boot.kernelModules = [];
+ boot.extraModulePackages = [];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}