diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2022-06-20 13:17:03 +0000 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-06-20 13:17:03 +0000 |
commit | 0416e7a115c7094a436d326e16e64720df68aa14 (patch) | |
tree | 63f15f82e1c2e75e3f03387487b58d45904dfddb /hosts/vm/hardware.nix | |
parent | Update (diff) | |
download | nixos-config-0416e7a115c7094a436d326e16e64720df68aa14.tar.gz nixos-config-0416e7a115c7094a436d326e16e64720df68aa14.tar.bz2 nixos-config-0416e7a115c7094a436d326e16e64720df68aa14.zip |
Add VM host
Diffstat (limited to 'hosts/vm/hardware.nix')
-rw-r--r-- | hosts/vm/hardware.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/hosts/vm/hardware.nix b/hosts/vm/hardware.nix new file mode 100644 index 0000000..5f331f1 --- /dev/null +++ b/hosts/vm/hardware.nix @@ -0,0 +1,38 @@ +{ config, lib, pkgs, modulesPath, ... }: +{ + imports = [ ]; + + boot = { + initrd = { + availableKernelModules = + [ "ata_piix" "ohci_pci" "sd_mod" "sr_mod" ]; + kernelModules = [ ]; + }; + kernelModules = [ ]; + extraModulePackages = [ ]; + kernelParams = [ "net.ifnames=0" "biosdevname=0" ]; + }; + + fileSystems."/" = { + device = "/dev/disk/by-label/nixos"; + fsType = "ext4"; + }; + + # Define on which hard drive you want to install Grub. + boot.loader.grub.device = "/dev/sdb"; # or "nodev" for efi only + + swapDevices = [ ]; + + services.xserver = { + # Enable touchpad support (enabled default in most desktopManager). + libinput.enable = true; + }; + + hardware = { + opengl = { + enable = true; + driSupport = true; + }; + }; + virtualisation.virtualbox.guest.enable = true; +} |