feat: rearrange nix modules

This commit is contained in:
Felix Schröter 2020-03-13 18:45:29 +01:00 committed by Felix Schroeter
parent 572d1d43c0
commit 89f6ab94b4
17 changed files with 28 additions and 28 deletions

17
hardware/gpu-nvidia.nix Normal file
View file

@ -0,0 +1,17 @@
{ config, pkgs, ... }:
{
# Graphics drivers
services.xserver.videoDrivers = [ "nvidia" ];
services.xserver.screenSection = ''
Option "metamodes" "1920x1080_144 +0+0 {ForceCompositionPipeline=On, ForceFullCompositionPipeline=On}"
'';
hardware.opengl = {
driSupport32Bit = true;
extraPackages = with pkgs; [
libvdpau-va-gl
vaapiVdpau
];
};
}