about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-03 02:45:38 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2024-01-03 02:45:38 +0100
commit27468aae960881071e431e734fbba10fb800a574 (patch)
tree5fd4b3f22f47889b91b831ecccc454be7d94aaf0 /nixos
parent0a1d1907a5b0767fae667177cd2850cb7039029f (diff)
nixos/oomd: add missing section to use slice
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/system/boot/systemd/oomd.nix1
1 files changed, 1 insertions, 0 deletions
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%
       '';