Merge pull request #278147 from SuperSandro2000/oomd-followup
nixos/oomd: use mkRenamedOptionModule like mentioned in the changelog, add missing section to use slice
This commit is contained in:
commit
65f0d24178
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
in {
|
||||
imports = [
|
||||
(lib.mkRemovedOptionModule [ "systemd" "oomd" "enableUserServices" ] "Use systemd.oomd.enableUserSlices instead.")
|
||||
(lib.mkRenamedOptionModule [ "systemd" "oomd" "enableUserServices" ] [ "systemd" "oomd" "enableUserSlices" ])
|
||||
];
|
||||
|
||||
options.systemd.oomd = {
|
||||
|
@ -61,6 +61,7 @@ in {
|
|||
};
|
||||
systemd.user.units."slice" = lib.mkIf cfg.enableUserSlices {
|
||||
text = ''
|
||||
[Slice]
|
||||
ManagedOOMMemoryPressure=kill
|
||||
ManagedOOMMemoryPressureLimit=80%
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue