tangled
alpha
login
or
join now
kitten.sh
/
system
0
fork
atom
Personal Nix setup
0
fork
atom
overview
issues
pulls
pipelines
Remove oomd setting from nix slice
kitten.sh
11 months ago
575fdb98
63c101e4
+9
-3
2 changed files
expand all
collapse all
unified
split
home
apps
ghostty.nix
modules
desktop
affinity.nix
+1
-1
home/apps/ghostty.nix
reviewed
···
94
94
confirm-close-surface = false
95
95
quit-after-last-window-closed = true
96
96
97
97
-
linux-cgroup = always
97
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
reviewed
···
16
16
type = types.bool;
17
17
};
18
18
19
19
+
oomd = mkOption {
20
20
+
default = false;
21
21
+
example = true;
22
22
+
description = "Enable systemd-oomd";
23
23
+
type = types.bool;
24
24
+
};
25
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
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
64
-
ManagedOOMMemoryPressure = "kill";
65
65
-
ManagedOOMMemoryPressureLimit = "80%";
66
72
};
67
73
};
68
74
services = {