[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

@ -5,14 +5,7 @@ let
desktopCfg = config.aviallon.desktop;
in
{
options.aviallon.hardware = {
gpuVendor = mkOption {
default = null;
example = "amd";
description = "Enable GPU vendor specific options";
type = types.enum [ "amd" "nvidia" "intel" ];
};
};
options.aviallon.hardware = { };
imports = [
./hardware/amd.nix