Pin and Park cores

This commit is contained in:
DashieTM 2025-04-13 19:13:46 +02:00
parent ac6cf62454
commit 3527bf2d82

View file

@ -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;