Move gaming remaining options
This commit is contained in:
parent
b63dafb8a6
commit
c88df9b954
4 changed files with 15 additions and 47 deletions
|
|
@ -5,13 +5,13 @@
|
||||||
# variables for system
|
# variables for system
|
||||||
conf = {
|
conf = {
|
||||||
monitor = "DP-1";
|
monitor = "DP-1";
|
||||||
gaming = {
|
|
||||||
enable = true;
|
|
||||||
device = 1;
|
|
||||||
};
|
|
||||||
hostname = "marmo";
|
hostname = "marmo";
|
||||||
};
|
};
|
||||||
mods = {
|
mods = {
|
||||||
|
gaming = {
|
||||||
|
enable = true;
|
||||||
|
gpu_device = 1;
|
||||||
|
};
|
||||||
stylix.colorscheme = "catppuccin-mocha";
|
stylix.colorscheme = "catppuccin-mocha";
|
||||||
hyprland.monitor = [
|
hyprland.monitor = [
|
||||||
# default
|
# default
|
||||||
|
|
|
||||||
|
|
@ -10,13 +10,13 @@ in
|
||||||
# config variables
|
# config variables
|
||||||
conf = {
|
conf = {
|
||||||
monitor = "DP-1";
|
monitor = "DP-1";
|
||||||
gaming = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
streamdeck.enable = true;
|
streamdeck.enable = true;
|
||||||
hostname = "spaceship";
|
hostname = "spaceship";
|
||||||
};
|
};
|
||||||
mods = {
|
mods = {
|
||||||
|
gaming = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
stylix.colorscheme = "catppuccin-mocha";
|
stylix.colorscheme = "catppuccin-mocha";
|
||||||
hyprland = {
|
hyprland = {
|
||||||
monitor = [
|
monitor = [
|
||||||
|
|
|
||||||
|
|
@ -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 = {
|
streamdeck = {
|
||||||
enable = lib.mkOption {
|
enable = lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
|
|
@ -176,7 +138,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
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)
|
} // (lib.optionalAttrs (options?system.stateVersion)
|
||||||
{
|
{
|
||||||
system.stateVersion = "unstable";
|
system.stateVersion = "unstable";
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,15 @@
|
||||||
heroic
|
heroic
|
||||||
];
|
];
|
||||||
example = [ ];
|
example = [ ];
|
||||||
type = with lib.types; listOf packages;
|
type = with lib.types; listOf package;
|
||||||
description = "Install gaming related packages";
|
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 {
|
steam = lib.mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
example = false;
|
example = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue