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;
|
||||
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 {
|
||||
default = true;
|
||||
example = false;
|
||||
|
|
@ -72,6 +84,10 @@
|
|||
general = {
|
||||
desiredgov = "performance";
|
||||
};
|
||||
cpu = {
|
||||
pin_cores = config.mods.gaming.pinCores;
|
||||
park_cores = config.mods.gaming.parkCores;
|
||||
};
|
||||
gpu = lib.mkIf config.mods.gaming.gpuOptimization {
|
||||
apply_gpu_optimisations = "accept-responsibility";
|
||||
gpu_device = config.mods.gaming.gpuDevice;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue