nix/module/Realtime.nix

15 lines
330 B
Nix

# Improve DE performance.
{ lib, config, ... }: with lib; let
cfg = config.module.desktop.realtime;
in {
options = {
module.desktop.realtime.enable = mkEnableOption "Realtime access.";
};
config = mkIf cfg.enable {
security.pam.loginLimits = [
{ domain = "@users"; item = "rtprio"; type = "-"; value = 1; }
];
};
}