summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/default.nix6
-rw-r--r--system/gaming/default.nix5
2 files changed, 9 insertions, 2 deletions
diff --git a/system/default.nix b/system/default.nix
index 4bb2809..40ef029 100644
--- a/system/default.nix
+++ b/system/default.nix
@@ -38,9 +38,11 @@ in {
experimental-features = ["nix-command" "flakes"];
use-xdg-base-directories = true;
trusted-users = ["root" "@wheel"];
- max-jobs = config.cores / 4;
- cores = (config.cores - 2) / config.nix.settings.max-jobs;
};
+ # make nice
+ daemonCPUSchedPolicy = "idle";
+ daemonIOSchedClass = "idle";
+ daemonIOSchedPriority = 7;
};
# allow defined unfree packages
diff --git a/system/gaming/default.nix b/system/gaming/default.nix
index ac04c6f..ead5de0 100644
--- a/system/gaming/default.nix
+++ b/system/gaming/default.nix
@@ -19,6 +19,11 @@ in {
ntsync = true;
};
+ services.ananicy = {
+ enable = true;
+ rulesProvider = pkgs.ananicy-rules-cachyos;
+ };
+
environment.systemPackages = with pkgs; [
winetricks
];