opengl service: move options under common hardware.opengl tree

Purely cosmetic.
This commit is contained in:
Nikolay Amiantov 2018-03-17 18:53:06 +03:00
parent 0934c8f49b
commit d61e6c5ed7

View File

@ -33,7 +33,9 @@ in
{ {
options = { options = {
hardware.opengl.enable = mkOption {
hardware.opengl = {
enable = mkOption {
description = '' description = ''
Whether to enable OpenGL drivers. This is needed to enable Whether to enable OpenGL drivers. This is needed to enable
OpenGL support in X11 systems, as well as for Wayland compositors OpenGL support in X11 systems, as well as for Wayland compositors
@ -47,7 +49,7 @@ in
default = false; default = false;
}; };
hardware.opengl.driSupport = mkOption { driSupport = mkOption {
type = types.bool; type = types.bool;
default = true; default = true;
description = '' description = ''
@ -56,7 +58,7 @@ in
''; '';
}; };
hardware.opengl.driSupport32Bit = mkOption { driSupport32Bit = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = '' description = ''
@ -68,7 +70,7 @@ in
''; '';
}; };
hardware.opengl.s3tcSupport = mkOption { s3tcSupport = mkOption {
type = types.bool; type = types.bool;
default = false; default = false;
description = '' description = ''
@ -79,7 +81,7 @@ in
''; '';
}; };
hardware.opengl.package = mkOption { package = mkOption {
type = types.package; type = types.package;
internal = true; internal = true;
description = '' description = ''
@ -87,7 +89,7 @@ in
''; '';
}; };
hardware.opengl.package32 = mkOption { package32 = mkOption {
type = types.package; type = types.package;
internal = true; internal = true;
description = '' description = ''
@ -97,7 +99,7 @@ in
''; '';
}; };
hardware.opengl.extraPackages = mkOption { extraPackages = mkOption {
type = types.listOf types.package; type = types.listOf types.package;
default = []; default = [];
example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ]"; example = literalExample "with pkgs; [ vaapiIntel libvdpau-va-gl vaapiVdpau intel-ocl ]";
@ -107,7 +109,7 @@ in
''; '';
}; };
hardware.opengl.extraPackages32 = mkOption { extraPackages32 = mkOption {
type = types.listOf types.package; type = types.listOf types.package;
default = []; default = [];
example = literalExample "with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]"; example = literalExample "with pkgs.pkgsi686Linux; [ vaapiIntel libvdpau-va-gl vaapiVdpau ]";
@ -117,6 +119,7 @@ in
set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc. set. This can be used to add OpenCL drivers, VA-API/VDPAU drivers etc.
''; '';
}; };
};
}; };