nixos/programs/{sessiond,gnome-session}: fix OOMScoreAdjust= default value

You have to be careful with negative numbers, apparently.
This commit is contained in:
Gabriel Arazas 2024-04-30 08:27:47 +08:00
parent 12b80432b0
commit b32bf6d6ab
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ in
# set a reasonable middle-in-the-ground value for this one. The user
# should have the responsibility passing judgement for what is best for
# this.
OOMScoreAdjust = lib.mkDefault -500;
OOMScoreAdjust = lib.mkDefault (-500);
};
startLimitBurst = lib.mkDefault 3;

View File

@ -171,7 +171,7 @@ in
# set a reasonable middle-in-the-ground value for this one. The user
# should have the responsibility passing judgement for what is best for
# this.
OOMScoreAdjust = lib.mkDefault -500;
OOMScoreAdjust = lib.mkDefault (-500);
};
startLimitBurst = lib.mkDefault 3;