dregil: Fix suspend/hibernate issue related to nvidia settings
This commit is contained in:
parent
892bd5f8e3
commit
4fc9ee5d66
4 changed files with 45 additions and 26 deletions
|
|
@ -9,15 +9,6 @@
|
|||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
nvidia-offload = pkgs.writeShellScriptBin "nvidia-offload" ''
|
||||
export __NV_PRIME_RENDER_OFFLOAD=1
|
||||
export __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0
|
||||
export __GLX_VENDOR_LIBRARY_NAME=nvidia
|
||||
export __VK_LAYER_NV_optimus=NVIDIA_only
|
||||
exec "$@"
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
# Include the results of the hardware scan.
|
||||
|
|
@ -90,7 +81,6 @@ in
|
|||
wget
|
||||
ripgrep
|
||||
git
|
||||
nvidia-offload
|
||||
pinentry-qt
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue