about summary refs log blame commit diff
path: root/hosts/vm/hardware/virtualbox/hardware.nix
blob: 470f733ab3917d4ea4ee2297d15c145dcc46cfc8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                                                
 


               






                                                    
                                               

                              
                                                                         

    










                                                                       
 
                                                
 
 
{ 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;

}