mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Hardware/GPUs] Refactor GPU related options
[Hardware/NVidia] Add option to save all VRAM before going to sleep
This commit is contained in:
parent
09e949be39
commit
4d01393e59
8 changed files with 104 additions and 54 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue