1 # A module for ‘rtkit’, a DBus system service that hands out realtime
2 # scheduling priority to processes that ask for it.
4 { config, lib, pkgs, ... }:
12 security.rtkit.enable = mkOption {
16 Whether to enable the RealtimeKit system service, which hands
17 out realtime scheduling priority to user processes on
18 demand. For example, the PulseAudio server uses this to
19 acquire realtime priority.
26 config = mkIf config.security.rtkit.enable {
28 security.polkit.enable = true;
30 # To make polkit pickup rtkit policies
31 environment.systemPackages = [ pkgs.rtkit ];
33 systemd.packages = [ pkgs.rtkit ];
35 services.dbus.packages = [ pkgs.rtkit ];
41 description = "RealtimeKit daemon";
43 users.groups.rtkit = {};