Files
nix/hosts/common/configs/user/gui/gaming/wivrn/default.nix
Nikolaos Karaolidis db6da46727 Add wivrn
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-07-26 14:25:58 +01:00

34 lines
699 B
Nix

{ 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" = { };
};
};
}