Move gaming remaining options

This commit is contained in:
DashieTM 2024-08-06 13:40:07 +02:00
parent b63dafb8a6
commit c88df9b954
4 changed files with 15 additions and 47 deletions

View file

@ -61,44 +61,6 @@
'';
};
gaming = {
enable = lib.mkOption {
default = false;
example = true;
type = lib.types.bool;
description = ''
Install gaming related programs such as steam, gamemode, and more
'';
};
device = lib.mkOption {
default = 0;
example = 0;
type = lib.types.int;
description = ''
GPU device number
'';
};
kernel = lib.mkOption {
default = true;
example = false;
type = lib.types.bool;
description = ''
Install the gaming(xanmod) kernel.
'';
};
gamemode_gpu = lib.mkOption {
default = true;
example = false;
type = lib.types.bool;
description = ''
Use GPU optimization.
'';
};
};
streamdeck = {
enable = lib.mkOption {
default = false;
@ -176,7 +138,7 @@
};
config = {
conf.kernel = lib.mkIf (config.conf.gaming.enable && config.conf.gaming.kernel) pkgs.linuxPackages_xanmod_latest;
conf.kernel = lib.mkIf (config.mods.gaming.enable && config.mods.gaming.kernel) pkgs.linuxPackages_xanmod_latest;
} // (lib.optionalAttrs (options?system.stateVersion)
{
system.stateVersion = "unstable";

View file

@ -16,9 +16,15 @@
heroic
];
example = [ ];
type = with lib.types; listOf packages;
type = with lib.types; listOf package;
description = "Install gaming related packages";
};
kernel = lib.mkOption {
default = true;
example = false;
type = lib.types.bool;
description = "Whether to use the xanmod kernel";
};
steam = lib.mkOption {
default = true;
example = false;