flake

Francesco Saccone's Nix flake.
git clone https://git.francescosaccone.com/flake
Log | Files | Refs | README | LICENSE

commit 6e07cd60f00425850049213a7122990237fbe3d3
parent c58ec0d26fc3abe5752f338620505ab2255565ca
Author: Francesco Saccone <francesco@francescosaccone.com>
Date:   Thu, 17 Apr 2025 16:08:27 +0200

Revert "feat: remove @audio and @realtime login limits settings"

This reverts commit 93110dc448e85744727a69fa6e3d12c682a0352a.

Diffstat:
Mhosts/laptop/default.nix | 27+++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)

diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix @@ -86,4 +86,31 @@ home.stateVersion = "25.05"; }; }; + + security.pam.loginLimits = [ + { + domain = "@realtime"; + type = "hard"; + item = "rtprio"; + value = 20; + } + { + domain = "@realtime"; + type = "soft"; + item = "rtprio"; + value = 10; + } + { + domain = "@audio"; + type = "-"; + item = "rtprio"; + value = 95; + } + { + domain = "@audio"; + type = "-"; + item = "memlock"; + value = "unlimited"; + } + ]; }