Pin and Park cores
This commit is contained in:
parent
ac6cf62454
commit
3527bf2d82
1 changed files with 16 additions and 0 deletions
|
|
@ -45,6 +45,18 @@
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
description = "Whether to use gamemode";
|
description = "Whether to use gamemode";
|
||||||
};
|
};
|
||||||
|
pinCores = lib.mkOption {
|
||||||
|
default = "false";
|
||||||
|
example = "true";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Pin Cores gamemode config";
|
||||||
|
};
|
||||||
|
parkCores = lib.mkOption {
|
||||||
|
default = "false";
|
||||||
|
example = "true";
|
||||||
|
type = lib.types.str;
|
||||||
|
description = "Park Cores gamemode config";
|
||||||
|
};
|
||||||
gpuOptimization = lib.mkOption {
|
gpuOptimization = lib.mkOption {
|
||||||
default = true;
|
default = true;
|
||||||
example = false;
|
example = false;
|
||||||
|
|
@ -72,6 +84,10 @@
|
||||||
general = {
|
general = {
|
||||||
desiredgov = "performance";
|
desiredgov = "performance";
|
||||||
};
|
};
|
||||||
|
cpu = {
|
||||||
|
pin_cores = config.mods.gaming.pinCores;
|
||||||
|
park_cores = config.mods.gaming.parkCores;
|
||||||
|
};
|
||||||
gpu = lib.mkIf config.mods.gaming.gpuOptimization {
|
gpu = lib.mkIf config.mods.gaming.gpuOptimization {
|
||||||
apply_gpu_optimisations = "accept-responsibility";
|
apply_gpu_optimisations = "accept-responsibility";
|
||||||
gpu_device = config.mods.gaming.gpuDevice;
|
gpu_device = config.mods.gaming.gpuDevice;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue