From f18cf012cfef88a114ab2c414e6302fec9a5e929 Mon Sep 17 00:00:00 2001 From: js6pak Date: Sun, 11 May 2025 17:16:25 +0200 Subject: [PATCH] nixos/gpu-screen-recorder: add `cap_sys_nice` back This reverts commit 7b69d089ca4c96096f06ed848d55a28e41d6b271, because gpu-screen-recorder 5.5.2 fixes the original issue. --- nixos/modules/programs/gpu-screen-recorder.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/programs/gpu-screen-recorder.nix b/nixos/modules/programs/gpu-screen-recorder.nix index 5a9401943dfe..156123de7a38 100644 --- a/nixos/modules/programs/gpu-screen-recorder.nix +++ b/nixos/modules/programs/gpu-screen-recorder.nix @@ -34,6 +34,12 @@ in capabilities = "cap_sys_admin+ep"; source = "${package}/bin/gsr-kms-server"; }; + security.wrappers."gpu-screen-recorder" = { + owner = "root"; + group = "root"; + capabilities = "cap_sys_nice+ep"; + source = "${package}/bin/gpu-screen-recorder"; + }; }; meta.maintainers = with lib.maintainers; [ timschumi ];