diff options
author | Richard Marko <srk@48.io> | 2022-08-10 11:40:27 +0200 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2022-08-12 17:31:02 +0800 |
commit | 1410d8939830767e9edba0f824e4f3b1cb8d6ee4 (patch) | |
tree | dc45958cefdafcf3eab420c7160461db174b2b82 /nixos | |
parent | de60bcf52d310c079e674f0452d8f951d5a04529 (diff) |
nixos/klipper: add OOMScoreAdjust -999
to make it unlikely that klipper gets killed by OOM killer.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/misc/klipper.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/klipper.nix b/nixos/modules/services/misc/klipper.nix index b34ca6f8c5d2a..4c0b67a98caf0 100644 --- a/nixos/modules/services/misc/klipper.nix +++ b/nixos/modules/services/misc/klipper.nix @@ -129,6 +129,7 @@ in RuntimeDirectory = "klipper"; SupplementaryGroups = [ "dialout" ]; WorkingDirectory = "${cfg.package}/lib"; + OOMScoreAdjust = "-999"; } // (if cfg.user != null then { Group = cfg.group; User = cfg.user; |