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

@ -5,13 +5,13 @@
# variables for system
conf = {
monitor = "DP-1";
gaming = {
enable = true;
device = 1;
};
hostname = "marmo";
};
mods = {
gaming = {
enable = true;
gpu_device = 1;
};
stylix.colorscheme = "catppuccin-mocha";
hyprland.monitor = [
# default

View file

@ -10,13 +10,13 @@ in
# config variables
conf = {
monitor = "DP-1";
gaming = {
enable = true;
};
streamdeck.enable = true;
hostname = "spaceship";
};
mods = {
gaming = {
enable = true;
};
stylix.colorscheme = "catppuccin-mocha";
hyprland = {
monitor = [

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;