33
hosts/common/configs/user/gui/gaming/wivrn/default.nix
Normal file
33
hosts/common/configs/user/gui/gaming/wivrn/default.nix
Normal 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" = { };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@@ -66,6 +66,7 @@ in
|
|||||||
(import ../../../common/configs/user/gui/gaming/gamescope { inherit user home; })
|
(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/steam { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/gaming/prismlauncher { 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/gtk { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/hyprland { inherit user home; })
|
(import ../../../common/configs/user/gui/hyprland { inherit user home; })
|
||||||
(import ../../../common/configs/user/gui/hyprpicker { inherit user home; })
|
(import ../../../common/configs/user/gui/hyprpicker { inherit user home; })
|
||||||
|
Reference in New Issue
Block a user