dotfiles/hosts/strix/configs/gpu-screen-recorder.nix

19 lines
515 B
Nix

{ pkgs, config, ... }:
{
environment.systemPackages = [
(pkgs.runCommand "gpu-screen-recorder"
{
nativeBuildInputs = [ pkgs.makeWrapper ];
} ''
mkdir -p $out/bin
makeWrapper ${pkgs.gpu-screen-recorder}/bin/gpu-screen-recorder $out/bin/gpu-screen-recorder \
--prefix LD_LIBRARY_PATH : ${pkgs.libglvnd}/lib \
--prefix LD_LIBRARY_PATH : ${config.boot.kernelPackages.nvidia_x11}/lib
'')
# for scripts
pkgs.xdotool
pkgs.jq
pkgs.pulseaudio
];
}