[Hardware/GPUs] Refactor GPU related options

[Hardware/NVidia] Add option to save all VRAM before going to sleep
This commit is contained in:
Antoine Viallon 2022-05-17 09:19:04 +02:00
parent 09e949be39
commit 4d01393e59
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
8 changed files with 104 additions and 54 deletions

View file

@ -0,0 +1,9 @@
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.aviallon.hardware.nvidia;
in {
config = mkIf (cfg.enable && !cfg.useProprietary) {
boot.initrd.kernelModules = [ "nouveau" ];
};
}