https://github.com/fps/rtnix
A nixos module/overlay for enabling realtime kernels
https://github.com/fps/rtnix
kernel nixos nixos-configuration nixos-module realtime
Last synced: 3 days ago
JSON representation
A nixos module/overlay for enabling realtime kernels
- Host: GitHub
- URL: https://github.com/fps/rtnix
- Owner: fps
- Created: 2022-10-31T12:02:44.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T13:33:03.000Z (about 1 year ago)
- Last Synced: 2025-01-21T14:29:53.988Z (about 1 year ago)
- Topics: kernel, nixos, nixos-configuration, nixos-module, realtime
- Language: Nix
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Take a look at the [source](default.nix)
# Example usage
Check this repository out relative to your `configuration.nix`, add `./rtnix` to your `imports` and then add some configuration to your `configuration.nix`. For example:
```
rtnix.kernel.realtime.enable = true;
rtnix.tuningProcesses = [ "irq/.*xhci" "irq/.*snd_intel_hda" ];
```
This should accomplish:
1. Rebuild your kernel with `PREEMPT_RT` enabled
2. Setup the processes matching the pattern `"irq/.*xhci"` to have `SCHED_FIFO` at priority 90
3. Setup the processes matching the patterh `"irq/.*snd_intel_hda"` to have `SCHED_FIFO` at priority 89
4. Setup the `PAM` limits to allow users belonging to the `realtime` group to do all kind of funky things