An implementation of parsecgaming (aka parsec) for NixOS users.
With a flake enabled system you can easily implement this in your own enviroment with
{
inputs =
{
parsecgaming.url = "github:DarthPJB/parsec-gaming-nix";
};
}
and
{
environment.systemPackages = with pkgs;
[
inputs.parsecgaming.packages.x86_64-linux.parsecgaming
];
}
simply run nix shell github:DarthPJB/parsec-gaming-nix#parsecgaming
on a flake-enabled nixos system
Due to parsec removing previous builds from their servers with each new release; this flake will fail to build at some point in the future - while caching the inputs via hydra or cachix may help; the proper solution is to update this flake with the URL to their latest build.
To do this simply edit the default.nix file - updating the url as appropriate. see here, and here;
If you having trouble getting hardware accelration to work
libva info: VA-API version 1.13.0
libva info: Trying to open /run/opengl-driver/lib/dri/nvidia_drv_video.so
libva info: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva info: Trying to open /usr/lib32/dri/nvidia_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
libva info: VA-API version 1.13.0
libva info: User environment variable requested driver 'vdpau'
libva info: Trying to open /run/opengl-driver/lib/dri/vdpau_drv_video.so
libva info: Trying to open /usr/lib/dri/vdpau_drv_video.so
libva info: Trying to open /usr/lib32/dri/vdpau_drv_video.so
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/vdpau_drv_video.so
libva info: Trying to open /usr/lib/i386-linux-gnu/dri/vdpau_drv_video.so
libva info: va_openDriver() returns -1
add
hardware.opengl.extraPackages = [ pkgs.vaapiVdpau ];
to your configuration.nix
test with
nix-shell -p libva-utils --run vainfo
more information here https://nixos.wiki/wiki/Accelerated_Video_Playback
You should fork this, use this, and make use of this in any way you want - please don't rely on me to maintain it (although I will do my best to do so).
Credit goes to @matthewcroughan for the original nix-file, and @nixinator for helping with repackaging.