diff --git a/hosts/common/configs/user/gui/gaming/wivrn/default.nix b/hosts/common/configs/user/gui/gaming/wivrn/default.nix new file mode 100644 index 0000000..1c57d88 --- /dev/null +++ b/hosts/common/configs/user/gui/gaming/wivrn/default.nix @@ -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" = { }; + }; + }; +} diff --git a/hosts/himalia/users/nick/default.nix b/hosts/himalia/users/nick/default.nix index c495bb6..34573a7 100644 --- a/hosts/himalia/users/nick/default.nix +++ b/hosts/himalia/users/nick/default.nix @@ -66,6 +66,7 @@ in (import ../../../common/configs/user/gui/gaming/gamescope { inherit user home; }) (import ../../../common/configs/user/gui/gaming/steam { inherit user home; }) (import ../../../common/configs/user/gui/gaming/prismlauncher { inherit user home; }) + (import ../../../common/configs/user/gui/gaming/wivrn { inherit user home; }) (import ../../../common/configs/user/gui/gtk { inherit user home; }) (import ../../../common/configs/user/gui/hyprland { inherit user home; }) (import ../../../common/configs/user/gui/hyprpicker { inherit user home; })