diff options
author | Will Fancher <elvishjerricco@gmail.com> | 2024-01-03 01:09:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-03 01:09:47 -0500 |
commit | 65f0d241783c94a08e4c9a3870736fc8854dd520 (patch) | |
tree | c99dcaafcebc02b32a27c45c7e1b9761ea78ac67 /nixos | |
parent | 14cb8882a6302acc82407574c4a49b68716bf5c6 (diff) | |
parent | 27468aae960881071e431e734fbba10fb800a574 (diff) |
Merge pull request #278147 from SuperSandro2000/oomd-followup
nixos/oomd: use mkRenamedOptionModule like mentioned in the changelog, add missing section to use slice
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/system/boot/systemd/oomd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/boot/systemd/oomd.nix b/nixos/modules/system/boot/systemd/oomd.nix index 2774edc42917e..000b18c01609a 100644 --- a/nixos/modules/system/boot/systemd/oomd.nix +++ b/nixos/modules/system/boot/systemd/oomd.nix @@ -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% ''; |