Skip to content

DarthPJB/parsec-gaming-nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parsec-gaming-nix

An implementation of parsecgaming (aka parsec) for NixOS users.

usage

as system-configuration

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
  ];
}

in a shell

simply run nix shell github:DarthPJB/parsec-gaming-nix#parsecgaming on a flake-enabled nixos system

Known issues

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;

Trouble Shooting

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

Important reminder.

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.

About

An implementation of parsec-gaming for NixOS users

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages