update nvidia module to graphics and add support for amd and intel
This commit is contained in:
@@ -9,10 +9,12 @@ in {
|
|||||||
options.system.nvidia = {
|
options.system.nvidia = {
|
||||||
enable = lib.mkEnableOption "enables nvidia";
|
enable = lib.mkEnableOption "enables nvidia";
|
||||||
vendor = lib.mkOption {
|
vendor = lib.mkOption {
|
||||||
type = lib.types.enum ["amd" "nvidia" "intel"];
|
type = lib.types.enum ["intel" "amd" "nvidia"];
|
||||||
default = "intel";
|
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 [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
|
|||||||
Reference in New Issue
Block a user