mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
nixos/systemd-oomd: use the correct name for the top-level user slice
`user-.slice` does not seem to exist, and the config we generate for it is rejected by systemd (see `systemctl status user-.slice`). I suppose that what was really intended here, was to configure `user.slice`, which is the one that is documented in `man systemd.special`. Reported-by: Ian Sollars <Ian.Sollars@brussels.msf.org>
This commit is contained in:
@@ -68,7 +68,7 @@ in
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = lib.mkDefault "80%";
|
||||
};
|
||||
systemd.slices."user-".sliceConfig = lib.mkIf cfg.enableUserSlices {
|
||||
systemd.slices."user".sliceConfig = lib.mkIf cfg.enableUserSlices {
|
||||
ManagedOOMMemoryPressure = "kill";
|
||||
ManagedOOMMemoryPressureLimit = lib.mkDefault "80%";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user