Add wivrn

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-07-26 14:25:58 +01:00
parent 573037d2ef
commit db6da46727
2 changed files with 34 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
{ user, home }:
{ pkgs, ... }:
{
services = {
udev.packages = with pkgs; [ android-udev-rules ];
avahi = {
enable = true;
openFirewall = true;
publish = {
enable = true;
userServices = true;
};
};
};
networking.firewall = {
allowedTCPPorts = [ 9757 ];
allowedUDPPorts = [ 9757 ];
};
environment = {
systemPackages = with pkgs; [ wivrn ];
pathsToLink = [ "/share/openxr" ];
etc."xdg/openxr/1/active_runtime.json".source = "${pkgs.wivrn}/share/openxr/1/openxr_wivrn.json";
persistence = {
"/persist/cache"."${home}/.cache/wivrn" = { };
"/persist/state"."${home}/.config/wivrn" = { };
};
};
}