add screen tearing fix to modules/nvidia
This commit is contained in:
parent
f6d8e4476f
commit
ef69b2f414
1 changed files with 17 additions and 8 deletions
|
@ -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 = {
|
options.modules.hardware.nvidia = {
|
||||||
enable = mkEnableOption false;
|
enable = mkEnableOption false;
|
||||||
};
|
};
|
||||||
|
@ -13,12 +18,12 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
driSupport = true;
|
driSupport = true;
|
||||||
driSupport32Bit = true;
|
driSupport32Bit = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# regardless of if you have intel/nvidia
|
# regardless of if you have intel/nvidia
|
||||||
# or amd/nvidia this HAS to be nvidia only
|
# or amd/nvidia this HAS to be nvidia only
|
||||||
# or else it will not work
|
# or else it will not work
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = ["nvidia"];
|
||||||
|
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
# wayland support
|
# wayland support
|
||||||
|
@ -32,6 +37,10 @@ in
|
||||||
# settings
|
# settings
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
|
|
||||||
|
# screen tearing fix
|
||||||
|
# might break a few things, don't really know
|
||||||
|
forceFullCompositionPipeline = true;
|
||||||
|
|
||||||
# Package
|
# Package
|
||||||
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
package = config.boot.kernelPackages.nvidiaPackages.stable;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue