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
1 changed files with 78 additions and 75 deletions

View File

@ -33,7 +33,9 @@ in
{
options = {
hardware.opengl.enable = mkOption {
hardware.opengl = {
enable = mkOption {
description = ''
Whether to enable OpenGL drivers. This is needed to enable
OpenGL support in X11 systems, as well as for Wayland compositors
@ -47,7 +49,7 @@ in
default = false;
};
hardware.opengl.driSupport = mkOption {
driSupport = mkOption {
type = types.bool;
default = true;
description = ''
@ -56,7 +58,7 @@ in
'';
};
hardware.opengl.driSupport32Bit = mkOption {
driSupport32Bit = mkOption {
type = types.bool;
default = false;
description = ''
@ -68,7 +70,7 @@ in
'';
};
hardware.opengl.s3tcSupport = mkOption {
s3tcSupport = mkOption {
type = types.bool;
default = false;
description = ''
@ -79,7 +81,7 @@ in
'';
};
hardware.opengl.package = mkOption {
package = mkOption {
type = types.package;
internal = true;
description = ''
@ -87,7 +89,7 @@ in
'';
};
hardware.opengl.package32 = mkOption {
package32 = mkOption {
type = types.package;
internal = true;
description = ''
@ -97,7 +99,7 @@ in
'';
};
hardware.opengl.extraPackages = mkOption {
extraPackages = mkOption {
type = types.listOf types.package;
default = [];
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;
default = [];
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.
'';
};
};
};