1 { config, lib, pkgs, ... }:
4 cfg = config.programs.gpu-screen-recorder;
5 package = cfg.package.override {
6 inherit (config.security) wrapperDir;
10 programs.gpu-screen-recorder = {
11 package = lib.mkPackageOption pkgs "gpu-screen-recorder" {};
13 enable = lib.mkOption {
14 type = lib.types.bool;
17 Whether to install gpu-screen-recorder and generate setcap
18 wrappers for promptless recording.
24 config = lib.mkIf cfg.enable {
25 security.wrappers."gsr-kms-server" = {
28 capabilities = "cap_sys_admin+ep";
29 source = "${package}/bin/gsr-kms-server";
31 security.wrappers."gpu-screen-recorder" = {
34 capabilities = "cap_sys_nice+ep";
35 source = "${package}/bin/gpu-screen-recorder";
39 meta.maintainers = with lib.maintainers; [ timschumi ];