[Hardware/Nvidia] Fix suspend with Nvidia GPUs

This commit is contained in:
Antoine Viallon 2023-04-16 22:35:50 +02:00
parent f4f6600ec5
commit 04cfbf21a4
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
2 changed files with 11 additions and 5 deletions

View file

@ -8,12 +8,12 @@ in {
./vgpu.nix
./proprietary.nix
./opensource.nix
( mkRenamedOptionModule [ "aviallon" "hardware" "nvidia" "saveAllVram" ] [ "aviallon" "hardware" "nvidia" "proprietary" "saveAllVram" ] )
];
options.aviallon.hardware.nvidia = {
enable = mkEnableOption "enable Nvidia hardware config";
useProprietary = mkEnableOption "nvidia proprietary drivers";
saveAllVram = mkEnableOption "back up all VRAM in /tmp before going to sleep. May reduce artifacts after resuming";
};
config = mkIf cfg.enable {