Personal Nix setup

Remove oomd setting from nix slice

Changed files
+9 -3
home
modules
desktop
+1 -1
home/apps/ghostty.nix
···
confirm-close-surface = false
quit-after-last-window-closed = true
-
linux-cgroup = always
+
linux-cgroup = single-instance
macos-option-as-alt = left
macos-titlebar-style = tabs
+8 -2
modules/desktop/affinity.nix
···
type = types.bool;
};
+
oomd = mkOption {
+
default = false;
+
example = true;
+
description = "Enable systemd-oomd";
+
type = types.bool;
+
};
+
performanceCores = mkOption {
type = with types; listOf ints.unsigned;
default = [ ];
···
++ optionals (performance != "") [ "nohz_full=${performance}" ];
systemd = {
+
oomd.enable = false;
user.slices = {
background.sliceConfig = {
AllowedCPUs = efficiency;
···
nix.sliceConfig = mkIf cfg.affinity.isolateNixDaemon {
CPUQuota = "80%";
IOWeight = 90;
-
ManagedOOMMemoryPressure = "kill";
-
ManagedOOMMemoryPressureLimit = "80%";
};
};
services = {