diff --git a/modules/programs/gaming.nix b/modules/programs/gaming.nix index 8d1fdd3..2e235bc 100644 --- a/modules/programs/gaming.nix +++ b/modules/programs/gaming.nix @@ -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;