From 0a1d1907a5b0767fae667177cd2850cb7039029f Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Mon, 1 Jan 2024 22:32:22 +0100 Subject: nixos/oomd: use mkRenamedOptionModule like mentioned in the changelog --- nixos/modules/system/boot/systemd/oomd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos') diff --git a/nixos/modules/system/boot/systemd/oomd.nix b/nixos/modules/system/boot/systemd/oomd.nix index 2774edc42917e..2697b3207ee25 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 = { -- cgit 1.4.1 From 27468aae960881071e431e734fbba10fb800a574 Mon Sep 17 00:00:00 2001 From: Sandro Jäckel Date: Wed, 3 Jan 2024 02:45:38 +0100 Subject: nixos/oomd: add missing section to use slice --- nixos/modules/system/boot/systemd/oomd.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos') diff --git a/nixos/modules/system/boot/systemd/oomd.nix b/nixos/modules/system/boot/systemd/oomd.nix index 2697b3207ee25..000b18c01609a 100644 --- a/nixos/modules/system/boot/systemd/oomd.nix +++ b/nixos/modules/system/boot/systemd/oomd.nix @@ -61,6 +61,7 @@ in { }; systemd.user.units."slice" = lib.mkIf cfg.enableUserSlices { text = '' + [Slice] ManagedOOMMemoryPressure=kill ManagedOOMMemoryPressureLimit=80% ''; -- cgit 1.4.1