hardware/gpu: add gpu module

This commit is contained in:
Infinidoge 2021-11-22 00:49:51 -05:00
parent c634a13ac3
commit d71ee4073c
9 changed files with 59 additions and 52 deletions

View file

@ -1,7 +0,0 @@
{ ... }: {
imports = [ ./common.nix ];
boot.initrd.kernelModules = [ "amdgpu" ];
services.xserver.videoDrivers = [ "amdgpu" ];
}

View file

@ -1,12 +0,0 @@
{ pkgs, ... }: {
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
extraPackages = with pkgs; [
vaapiVdpau
libvdpau-va-gl
];
};
}

View file

@ -1,8 +0,0 @@
{ pkgs, ... }: {
imports = [ ./common.nix ];
hardware.opengl.extraPackages = with pkgs; [
intel-media-driver
vaapiIntel
];
}

View file

@ -1,12 +0,0 @@
{ ... }: {
imports = [ ./common.nix ];
services.xserver.videoDrivers = [ "nvidia" ];
hardware.nvidia = {
modesetting.enable = true;
powerManagement.enable = true;
};
virtualisation.docker.enableNvidia = true;
}