treewide: oomd settings (slices)
This commit is contained in:
parent
78c03f0825
commit
40584a732e
10 changed files with 114 additions and 0 deletions
|
|
@ -84,6 +84,11 @@
|
|||
./system/name.nix
|
||||
./system/stateVersion.nix
|
||||
|
||||
./systemd/oomd.nix
|
||||
./systemd/slices/system-slice.nix
|
||||
./systemd/slices/user-slice.nix
|
||||
./systemd/slices/root-slice.nix
|
||||
|
||||
./time/timeZone.nix
|
||||
|
||||
./users/users/hand7s.nix
|
||||
|
|
|
|||
10
s0mePC-nix/systemd/oomd.nix
Normal file
10
s0mePC-nix/systemd/oomd.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
oomd = {
|
||||
enable = true;
|
||||
enableUserSlices = true;
|
||||
enableSystemSlice = true;
|
||||
enableRootSlice = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0mePC-nix/systemd/slices/root-slice.nix
Normal file
14
s0mePC-nix/systemd/slices/root-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
root = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0mePC-nix/systemd/slices/system-slice.nix
Normal file
14
s0mePC-nix/systemd/slices/system-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
system = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0mePC-nix/systemd/slices/user-slice.nix
Normal file
14
s0mePC-nix/systemd/slices/user-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
user = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -79,6 +79,11 @@
|
|||
./system/name.nix
|
||||
./system/stateVersion.nix
|
||||
|
||||
./systemd/oomd.nix
|
||||
./systemd/slices/system-slice.nix
|
||||
./systemd/slices/user-slice.nix
|
||||
./systemd/slices/root-slice.nix
|
||||
|
||||
./time/timeZone.nix
|
||||
|
||||
./users/users/hand7s.nix
|
||||
|
|
|
|||
10
s0melapt0p-nix/systemd/oomd.nix
Normal file
10
s0melapt0p-nix/systemd/oomd.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
oomd = {
|
||||
enable = true;
|
||||
enableUserSlices = true;
|
||||
enableSystemSlice = true;
|
||||
enableRootSlice = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0melapt0p-nix/systemd/slices/root-slice.nix
Normal file
14
s0melapt0p-nix/systemd/slices/root-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
root = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0melapt0p-nix/systemd/slices/system-slice.nix
Normal file
14
s0melapt0p-nix/systemd/slices/system-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
system = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
s0melapt0p-nix/systemd/slices/user-slice.nix
Normal file
14
s0melapt0p-nix/systemd/slices/user-slice.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{...}: {
|
||||
systemd = {
|
||||
slices = {
|
||||
user = {
|
||||
sliceConfig = {
|
||||
ManagedOOMSwap = "kill";
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = "40%";
|
||||
ManagedOOMMemoryPressureDurationSec = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue