nix/module/Realtime.nix

15 lines
322 B
Nix

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