diff --git a/modules/nixos/profiles/system.nix b/modules/nixos/profiles/system.nix
index f067b6b2..1204cb9f 100644
--- a/modules/nixos/profiles/system.nix
+++ b/modules/nixos/profiles/system.nix
@@ -93,6 +93,22 @@ in {
         pulse.enable = true;
         jack.enable = true;
       };
+
+      # This is based from https://jackaudio.org/faq/linux_rt_config.html.
+      security.pam.loginLimits = [
+        {
+          domain = "@audio";
+          type = "-";
+          item = "rtprio";
+          value = "95";
+        }
+        {
+          domain = "@audio";
+          type = "-";
+          item = "memlock";
+          value = "unlimited";
+        }
+      ];
     })
 
     (lib.mkIf cfg.fonts.enable {