Skip to content

Commit 3527bf2

Browse files
committed
Pin and Park cores
1 parent ac6cf62 commit 3527bf2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

modules/programs/gaming.nix

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@
4545
type = lib.types.bool;
4646
description = "Whether to use gamemode";
4747
};
48+
pinCores = lib.mkOption {
49+
default = "false";
50+
example = "true";
51+
type = lib.types.str;
52+
description = "Pin Cores gamemode config";
53+
};
54+
parkCores = lib.mkOption {
55+
default = "false";
56+
example = "true";
57+
type = lib.types.str;
58+
description = "Park Cores gamemode config";
59+
};
4860
gpuOptimization = lib.mkOption {
4961
default = true;
5062
example = false;
@@ -72,6 +84,10 @@
7284
general = {
7385
desiredgov = "performance";
7486
};
87+
cpu = {
88+
pin_cores = config.mods.gaming.pinCores;
89+
park_cores = config.mods.gaming.parkCores;
90+
};
7591
gpu = lib.mkIf config.mods.gaming.gpuOptimization {
7692
apply_gpu_optimisations = "accept-responsibility";
7793
gpu_device = config.mods.gaming.gpuDevice;

0 commit comments

Comments
 (0)