add screen tearing fix to modules/nvidia

This commit is contained in:
Sakooooo 2023-08-13 19:01:42 +03:00
parent f6d8e4476f
commit ef69b2f414
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -1,9 +1,14 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.hardware.nvidia;
in
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.hardware.nvidia;
in {
options.modules.hardware.nvidia = {
enable = mkEnableOption false;
};
@ -32,6 +37,10 @@ in
# settings
nvidiaSettings = true;
# screen tearing fix
# might break a few things, don't really know
forceFullCompositionPipeline = true;
# Package
package = config.boot.kernelPackages.nvidiaPackages.stable;