Skip to content

Commit

Permalink
common: enable systemd-oomd
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Dec 9, 2024
1 parent 46b72b1 commit e15bf75
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@
systemd = {
network.wait-online.enable = false;

oomd = {
enable = true;
enableRootSlice = true;
enableSystemSlice = true;
enableUserSlices = true;
};

tmpfiles.rules = [
"w! /sys/kernel/mm/transparent_hugepage/enabled - - - - madvise"
"w! /sys/kernel/mm/transparent_hugepage/defrag - - - - defer+madvise"
Expand Down

0 comments on commit e15bf75

Please sign in to comment.