From 980814a6d5f264d06804a828b170a259cf20a43a Mon Sep 17 00:00:00 2001 From: Frantisek Bohacek Date: Sun, 1 Oct 2023 11:38:52 +0200 Subject: [PATCH] feat: change rtkit arguments to prevent log flooding --- hosts/configuration.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/hosts/configuration.nix b/hosts/configuration.nix index 059b061..8b62bcc 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -47,6 +47,16 @@ }; security.rtkit.enable = true; + systemd.services.rtkit-daemon = { + serviceConfig = { + LogLevelMax = 4; + ExecStart = [ + "" + "${pkgs.rtkit}/libexec/rtkit-daemon --processes-per-user-max=1000 --processes-per-user-max=10000 --actions-per-burst-max=1000 --actions-burst-sec=10 --canary-cheep-msec=30000 --canary-watchdog-msec=60000" + ]; + }; + }; + security.polkit.enable = true; fonts.fonts = with pkgs; [ # Fonts @@ -87,7 +97,6 @@ killall nano pciutils - pulseaudio ripgrep socat usbutils -- 2.48.1