update nvidia module to graphics and add support for amd and intel

This commit is contained in:
2025-11-05 18:25:55 -06:00
parent f107cf19c7
commit ad487e6715

View File

@@ -9,10 +9,12 @@ in {
options.system.nvidia = {
enable = lib.mkEnableOption "enables nvidia";
vendor = lib.mkOption {
type = lib.types.enum ["amd" "nvidia" "intel"];
type = lib.types.enum ["intel" "amd" "nvidia"];
default = "intel";
description = "set the vendor of your graphics device";
};
description = ''
set the vendor of your graphics device
supported options are "intel" "amd" "nvidia"
'';
};
config = lib.mkIf cfg.enable (lib.mkMerge [