From f5aa6d4c9957ad99f3efabf61ef6085dba65f753 Mon Sep 17 00:00:00 2001 From: Rachel Lambda Samuelsson Date: Sun, 3 Sep 2023 10:22:13 +0200 Subject: [PATCH] lambda: add permission for user to set niceness to any value --- lambda/configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lambda/configuration.nix b/lambda/configuration.nix index 34acfc9..5a3efad 100644 --- a/lambda/configuration.nix +++ b/lambda/configuration.nix @@ -159,7 +159,6 @@ keepEnv = true; }]; }; - # [USER / HOME MANAGER] users.users.rachel = { isNormalUser = true; @@ -171,6 +170,11 @@ "audio" ]; }; + # Done for gamemoderun + security.pam.loginLimits = [ + { domain = "rachel"; item = "nice"; "type" = "soft"; value = "-20"; } + { domain = "rachel"; item = "nice"; "type" = "hard"; value = "-20"; } + ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions