hardware/gpu: add gpu module
This commit is contained in:
parent
c634a13ac3
commit
d71ee4073c
9 changed files with 59 additions and 52 deletions
|
@ -1,7 +0,0 @@
|
|||
{ ... }: {
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
boot.initrd.kernelModules = [ "amdgpu" ];
|
||||
|
||||
services.xserver.videoDrivers = [ "amdgpu" ];
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
hardware.opengl = {
|
||||
enable = true;
|
||||
driSupport = true;
|
||||
driSupport32Bit = true;
|
||||
|
||||
extraPackages = with pkgs; [
|
||||
vaapiVdpau
|
||||
libvdpau-va-gl
|
||||
];
|
||||
};
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
hardware.opengl.extraPackages = with pkgs; [
|
||||
intel-media-driver
|
||||
vaapiIntel
|
||||
];
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
{ ... }: {
|
||||
imports = [ ./common.nix ];
|
||||
|
||||
services.xserver.videoDrivers = [ "nvidia" ];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
powerManagement.enable = true;
|
||||
};
|
||||
|
||||
virtualisation.docker.enableNvidia = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue