nix/module/desktop/Realtime.nix

15 lines
330 B
Nix
Raw Normal View History

# Improve DE performance.
2024-06-25 04:04:39 +03:00
{ 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; }
];
};
2024-03-28 12:01:06 +03:00
}