nix/module/Realtime.nix

23 lines
366 B
Nix
Raw Permalink Normal View History

# Improve DE performance.
{ lib, config, ... }:
with lib;
let
cfg = config.module.realtime;
in
{
options = {
module.realtime.enable = mkEnableOption "Realtime access.";
};
2024-06-25 04:04:39 +03:00
config = mkIf cfg.enable {
security.pam.loginLimits = [
{
domain = "@users";
item = "rtprio";
type = "-";
value = 1;
}
];
};
2024-03-28 12:01:06 +03:00
}