From daaf66420582db82f8cad09510324656d429d229 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Tue, 20 Sep 2022 02:18:09 +0200 Subject: Fully separate hosts from hardwares Now hosts/ and hardware/ live under different directories and their joined system configurations are permutated and exposed throught the host-hardware outputs --- hardware/virtualbox/hardware.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 hardware/virtualbox/hardware.nix (limited to 'hardware/virtualbox/hardware.nix') diff --git a/hardware/virtualbox/hardware.nix b/hardware/virtualbox/hardware.nix new file mode 100644 index 0000000..470f733 --- /dev/null +++ b/hardware/virtualbox/hardware.nix @@ -0,0 +1,33 @@ +{ config, lib, inputs, pkgs, modulesPath, ... }: +{ + imports = [ + ./disks.nix + ]; + + boot = { + initrd = { + availableKernelModules = + [ "ata_piix" "ohci_pci" "sd_mod" "sr_mod" ]; + kernelModules = [ ]; + }; + kernelPackages = pkgs.linuxPackages_latest; + kernelModules = [ ]; + extraModulePackages = [ ]; + kernelParams = [ "net.ifnames=0" "biosdevname=0" "mitigations=off" ]; + }; + + services.xserver = { + # Enable touchpad support (enabled default in most desktopManager). + libinput.enable = true; + }; + + hardware = { + opengl = { + enable = true; + driSupport = true; + }; + }; + + virtualisation.virtualbox.guest.enable = true; + +} -- cgit 1.4.1