Files
nix/hosts/common/configs/user/gui/gaming/wivrn/default.nix
Nikolaos Karaolidis c4fafe3043 Clean up wivrn
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
2025-07-26 20:46:35 +01:00

34 lines
723 B
Nix

{ user, home }:
{ pkgs, ... }:
{
networking.firewall = {
allowedTCPPorts = [ 9757 ];
allowedUDPPorts = [ 9757 ];
};
services = {
udev.packages = with pkgs; [ android-udev-rules ];
avahi = {
enable = true;
openFirewall = true;
publish = {
enable = true;
userServices = true;
};
};
};
environment = {
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" = { };
};
};
home-manager.users.${user}.home.packages = with pkgs; [ wivrn ];
}