Personal Nix setup

Remove oomd setting from nix slice

+9 -3
+1 -1
home/apps/ghostty.nix
··· 94 94 confirm-close-surface = false 95 95 quit-after-last-window-closed = true 96 96 97 - linux-cgroup = always 97 + linux-cgroup = single-instance 98 98 99 99 macos-option-as-alt = left 100 100 macos-titlebar-style = tabs
+8 -2
modules/desktop/affinity.nix
··· 16 16 type = types.bool; 17 17 }; 18 18 19 + oomd = mkOption { 20 + default = false; 21 + example = true; 22 + description = "Enable systemd-oomd"; 23 + type = types.bool; 24 + }; 25 + 19 26 performanceCores = mkOption { 20 27 type = with types; listOf ints.unsigned; 21 28 default = [ ]; ··· 40 47 ++ optionals (performance != "") [ "nohz_full=${performance}" ]; 41 48 42 49 systemd = { 50 + oomd.enable = false; 43 51 user.slices = { 44 52 background.sliceConfig = { 45 53 AllowedCPUs = efficiency; ··· 61 69 nix.sliceConfig = mkIf cfg.affinity.isolateNixDaemon { 62 70 CPUQuota = "80%"; 63 71 IOWeight = 90; 64 - ManagedOOMMemoryPressure = "kill"; 65 - ManagedOOMMemoryPressureLimit = "80%"; 66 72 }; 67 73 }; 68 74 services = {