Personal Nix setup

Update affinity settings

Changed files
+4 -14
modules
desktop
+4 -14
modules/desktop/affinity.nix
···
user.slices = {
background.sliceConfig = {
AllowedCPUs = efficiency;
-
Delegate = "cpuset";
CPUWeight = 80;
-
Nice = 6;
-
IOSchedulingClass = "idle";
};
session.sliceConfig = {
StartupAllowedCPUs = mkIf (performance != "") "${efficiency},${performance}";
AllowedCPUs = efficiency;
-
Delegate = "cpuset";
-
Nice = 9;
-
IOSchedulingClass = "best-effort";
-
IOSchedulingPriority = 0;
-
};
-
app.sliceConfig = {
-
Nice = 0;
-
IOSchedulingClass = "best-effort";
-
IOSchedulingPriority = 0;
};
};
slices = {
system.sliceConfig = {
AllowedCPUs = efficiency;
-
Nice = 12;
-
IOSchedulingClass = "idle";
};
nix.sliceConfig = mkIf cfg.affinity.isolateNixDaemon {
CPUQuota = "80%";
···
user.slices = {
background.sliceConfig = {
AllowedCPUs = efficiency;
CPUWeight = 80;
+
IOWeight = 60;
};
session.sliceConfig = {
StartupAllowedCPUs = mkIf (performance != "") "${efficiency},${performance}";
AllowedCPUs = efficiency;
+
IOWeight = 90;
};
+
app.sliceConfig.IOWeight = 100;
};
slices = {
system.sliceConfig = {
AllowedCPUs = efficiency;
+
IOWeight = 120;
};
nix.sliceConfig = mkIf cfg.affinity.isolateNixDaemon {
CPUQuota = "80%";